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

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |