xsl-list
[Top] [All Lists]

Re: [xsl] RE: Cheaper to prepend or append an item to a sequence?

2011-02-22 08:25:12

In the functional language Haskell, there is a clear disadvantage of appending 
an item onto the end of a list, and developers are strongly encouraged to build 
lists by prepending an item onto a list.

It would be interesting to know the basis for this advice.

(a) Does the Haskell language mandate an implementation?

(b) or is there only one implementation?

(c) or is there so much commonality between implementations that such advice applies to all of them?

(d) or is the book written for users of a particular implementation?

XSLT is more like SQL in this regard - different optimizers do things differently.

Michael Kay
Saxonica

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>