W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2016

[Bug 29918] [FO31] map:find ordering constraint prevents streaming evaluation

From: <bugzilla@jessica.w3.org>
Date: Mon, 31 Oct 2016 18:01:54 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29918-523-gjOgy92FBh@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29918

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
I'm not convinced that there is a requirement for streamed evaluation of maps,
since I think they are by their nature direct-access data structures. However,
if we accept this requirement we could change the rule to read:

<quote>
To process an item that is a map, then for each key-value entry (K, V) in the
map (in ·implementation-dependent· order), perform both the following steps, in
order:

 a. If K is the same key as $key, then add V as a new member to the end of the
result array.

 b. Process V (which is, in general, a sequence).
</quote>

We could also relax the rules on ordering further, but this goes explicitly
against a previous decision of the WG which wanted the order to be as
predictable as possible.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 31 October 2016 18:02:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:02 UTC