[xquery-talk] arrow operator

W.S. Hager wshager at gmail.com
Wed Aug 2 07:57:00 PDT 2017


Why can't the context contain a sequence?


2017-08-02 16:31 GMT+02:00 Ghislain Fourny <gfourny at inf.ethz.ch>:

> Dear Wouter,
>
> I see your point and it makes sense. The tricky part here, following up on
> your suggestion to make the choice of the first position less arbitrary, is
> that the context item must be an item: it cannot be a sequence of several
> items. This eliminates any design based on communicating the value on the
> left through the context item mechanism. The closest to the intent of =>
> would be using a let variable binding.
>
> The convention of binding the first argument, of course, implies that the
> (or some) functions are designed having in mind that the first parameter is
> “special”, that is, if the function is intended to be used with =>. In Java
> or C++, the self/this implied parameter is special, too (but it is not
> considered to be at any position).
>
> Kind regards,
> Ghislain
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20170802/7db96490/attachment.html>


More information about the talk mailing list