[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: Is xsl:for-each "syntactic sugar"?

Subject: Re: RE: Is xsl:for-each "syntactic sugar"?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 7 May 2010 10:19:03 -0700
Re:  RE: Is xsl:for-each "syntactic sugar"?
On Fri, May 7, 2010 at 9:42 AM, Costello, Roger L. <costello@xxxxxxxxx>
> Hi Folks,
> In the book, Structure and Interpretation of Computer Programs by Abelson,
Sussman, and Sussman, the authors assert that looping constructs (such as
xsl:for-each) are syntactic sugar:

Every programming language construct is "syntax sugar" around a given
set of machine instructions.

Dimitre Novatchev
Truly great madness cannot be achieved without significant intelligence.
To invent, you need a good imagination and a pile of junk
Never fight an inanimate object
You've achieved success in your field when you don't know whether what
you're doing is work or play

>> B One reason that the distinction between process and procedure
>> B may be confusing is that most implementations of common languages
>> B (including Java, C++, and C) are designed in such a way that the
>> B interpretation of any recursive procedure consumes an amount of
>> B memory that grows with the number of procedure calls, even when
>> B the process described is, in principle, iterative. As a consequence,
>> B these languages can describe iterative processes only by resorting
>> B to special-purpose "looping constructs" such as do, repeat, until for,
>> B and while. The implementation of Scheme ... does not share this defect.
>> B It will execute an iterative process in constant space, even if the
>> B iterative process is described by a recursive procedure. An
>> B with this property is called tail-recursive.
> /Roger

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.