Re: The Browser Wars are Dead! Long Live the Browser
> Forwarded by request: > > > Date: Wed, 23 Oct 2002 15:59:18 +0000 > > From: "Clark C. Evans" <cce@c...> > > To: John Cowan <jcowan@r...> > > Cc: Sean McGrath <sean.mcgrath@p...>, xml-dev@l... > > Subject: Re: The Browser Wars are Dead! Long Live the Browser > > > > On Wed, Oct 23, 2002 at 10:30:44AM -0400, John Cowan wrote: > > | > > | Python, like Scheme, has continuations. No other language in regular use > > | can make that statement. > > > > As I recall: > > - > > > Python 2.2+ only has generators; for continuations you need > > StacklessPython. Guido looked at continuations, but they > > seemed too much of a change, so he went with a lesser cousin > > which provides 80% of the benefit with 20% of the implementation > > effort. Details of this can be found in the iterator sig. > > Since Python generators are reified and available to the Python level, > they seem like continuations to me. The only difference is that generators can only be resumed to the calling context. They cannot be resumed to arbitrary contexts, as true continuations can. I'm not an expert on these matters, but the long discussion of this on python-dev convinces me that there are almost no practical situations where this difference is significant and cannot be worked around fairly easily. Certainly for the several generator idioms that sweeten XML processing, resuming to calling context is all you need. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Python&XML column: 2. Introducing PyXML - http://www.xml.com/pub/a/2002/09/25/p y.html The Past, Present and Future of Web Services 1 - http://www.webservices.org/ind ex.php/article/articleview/663/1/24/ The Past, Present and Future of Web Services 2 - 'http://www.webservices.org/in dex.php/article/articleview/679/1/24/ Serenity through markup - http://adtmag.com/article.asp?id=6807 Tip: Using generators for XML processing - http://www-106.ibm.com/developerwork s/xml/library/x-tipgenr.html
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format