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

[Bug 29427] New: [FO31] map:get

From: <bugzilla@jessica.w3.org>
Date: Sun, 07 Feb 2016 13:05:31 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29427-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 29427
           Summary: [FO31] map:get
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.1
          Assignee: mike@saxonica.com
          Reporter: benito@benibela.de
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

1. There is something missing in this sentence: " In this situation the entry
that is returned is ยทยท." 

2. It would be nice if there was a three parameter form map:get($map, $key,
$default) that returns $default instead (), if $key does not exist. Otherwise,
if you have a map that can contain () and you do not need () as default value,
you have to do a contains/get call and that is twice as slow

3. It would be much easier to use if it could be used with a sequence $keys as
xs:anyAtomicType*. As in $map(("a", "b", "c")) too, to return a sequence

Especially after the arrow operator was modified/clarified. Previously you
could have thought that you could write ("a", "b", "c") => $map to get all the
keys, but after 27537   it is clear that this would become $map(("a", "b",
"c")), so you can't and that is a pity.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 7 February 2016 13:05:35 UTC

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