The case for native higher-order functions in XQuery
The XQuery Working Group is debating the need for higher-order functions in the language. I’m working on honing my description of why this is an important feature. Does this work? What would work better?
Imagine you are writing a smallish widget app, in an environment without a standard library. When you need to sort your widgets, you’d write a simple function with a signature like sort(sequence-of-widgets). That’s great.
XQuery doesn’t. It should, because people are now using it for more than short queries. People are writing programs in it. -m
P. S. Comment please.