Michael Kay
Michael Kay
If the function item with optional parameters can't usefully be passed as an argument to a higher-order function, then in my view the cost of the feature is far higher...
What you say is all true in a pure XPath world, where you are using dynamic functions because XPath doesn't have any capability for static function declarations. But in XQuery...
So if I write `let $inc as X := fn($n, $by := 1) { $n + $by }` what might be some valid values for X? And (a different question...
"Lexical sugar" implies you can expand it during parsing. But we don't know what $inc is until we have evaluated it. Consider for example ``` let $inc := fn($n, $by...
I'm not sure whether that really answers the question. In fact there seem to be two questions. The first part is whether file paths are absolute or relative. The second...
Am I right in thinking we can close this as completed?
"Cache" to me means that you keep the most-recently-used 50 or so documents, and when the cache becomes full, you throw the oldest things out. That's a useful mechanism but...
I think it's completely clear what "deterministic" means for this function - if you call it twice with the same arguments, you're guaranteed to get the same result. And I...
The problem (and the reason this wasn't allowed in the first place) is that when we later introduce a new function in the core library, we introduce a potential incompatibility...
I prefer (2) over (1), mainly because the scope of the focus change is very clearly marked. (The operator priority of "~" is not intuitive). With syntax like (2), I...