Interesting. To take a look at the special cases:
map:merge(a := 1) would probably return a map with a single entry?
Michael Kay <mike@saxonica.com> schrieb am Mi., 2. Dez. 2020, 17:07:
>
>
> On 2 Dec 2020, at 11:27, Tom Hillman <tom@expertml.com> wrote:
>
> serialize($x, method: 'json', indent: true())
>
>
>
> I've had a go at speccing this up: see
> https://htmlpreview.github.io/?https://github.com/qt4cg/qtspecs/blob/master/specifications/xquery-40/html/xpath-40-diff.html
>
> Search for "keyword arguments".
>
> I'm liking it.
>
> (I used ":=" rather than ":" as the punctuation, but it's easily changed)
>
> There's a bug in the grammar -- it allows f( , a:= 3 ) -- but hey, it's a
> first draft.
>
> Michael Kay
> Saxonica
>
>