Re: anonymous functions? anonymous variables
Ihe Onwuka <[email protected]>
| Newsgroups | gmane.text.xml.saxon.help,gmane.text.xml.xsl.general.mulberrytech |
|---|---|
| Message-ID | <CALfs7+xOksWc2GLv78WOvsUHaP5=XHyJHtRKzTZKaRPPahgjUA@mail.gmail.com> |
and the positional referencing precludes the more expressive
function(_,lastName) {lastName}
which gives a better clue as to what is going on.
On Sun, Aug 16, 2020 at 12:00 PM Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]> wrote:
> In my XML Prague 2020 paper my proposal would allow
>
> _{$2}
>
> though that feels a little bit too terse...
>
> Michael Kay
> Saxonica
>
> On 16 Aug 2020, at 02:29, Ihe Onwuka <[email protected]> wrote:
>
> Since I don't have to give a function a name it would also be nice if I
> didn't have to name variables I am not using.
>
> e.g
>
> Suppose I have a constraint that a function must have 2 arguments but I
> only need to use one I have to write
>
> function ($k, $v) {$v}
>
> instead of something like
>
> function (_,$v) {$v}
>
>
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help