RE: Arrow operator and empty sequences

> 
> 1) bla => concat("a", ?, "b")
> 2) bla => (xs:string#1)
> 3) bla => (function($a) { $a * 10 })
> 4) bla => (function($a) { $a => concat($a, ?, ?) } ("test") )
> 

Sorry, these examples should read as:

1) bla => concat("a", ?, "b")()
2) bla => (xs:string#1)()
3) bla => (function($a) { $a * 10 })()
4) bla => (function($a) { $a => concat($a, ?, ?) } ("test") )()

(I forgot the required parentheses, according to the prod. rules)

Also, I believe now that (4) is illegal, because we don't allow a function call expression to leave out arguments (unfortunately, but since we already allow overloads, probably out of necessity), so while the expression as a whole seems somewhat reasonable, its parts will fail.

I have turned this into a bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=29346 

Received on Friday, 18 December 2015 01:38:03 UTC