xsl-list
[Top] [All Lists]

RE: [xsl] Re: OOXML

2008-07-01 10:26:19
Yes -- strictly speaking XSLT and XQuery are declarative and 
not functional -- functions are not first-class objects and 
the languages are not based on the lambda calculus & 
combinator theory.

People use the term "functional" loosely to mean 
"declarative", 

I wouldn't be quite so prescriptive in the terminology. As with OO,
functional programming is an "orientation" rather than a set of conformance
rules. Yes, neither language has higher-order functions (though as everyone
on this list knows, XSLT can simulate them quite well with nodes linked to
dynamic templates acting as a surrogate for a higher-order function); but
the most important characteristic of functional programming is the use of
functional composition as the execution model, with no distinction between
expressions and statements. Both languages have that (though XQuery is
becoming less pure over time, it seems.)

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>