[xquery-talk] arrow operator
christian.gruen at gmail.com
Wed Aug 2 08:01:45 PDT 2017
> Why can't the context contain a sequence?
Please have a look at the specification for more information on the
> 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,
> talk at x-query.com
More information about the talk