W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2014

[Bug 21963] Implicit iteration on dynamic function calls

From: <bugzilla@jessica.w3.org>
Date: Tue, 20 May 2014 16:13:25 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-21963-523-17Iiha61Ea@http.www.w3.org/Bugs/Public/>

--- Comment #4 from Michael Kay <mike@saxonica.com> ---
I'm against doing this.

I think the main use case is for selection from an array of maps. This can be
done using the "?" operator: employees[?location='Germany']?surname.

An argument against is as follows: Suppose we have a map of functions (XDM's
equivalent of an object); so for example $complex?multiply($c1, $c2) selects
the multiply function on complex numbers. The effect of this proposal would be
that if you misspell "multiply", the "?" selector selects no function and you
get an empty sequence back rather than an error.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 20 May 2014 16:13:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:56 UTC