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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29427

            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
($map("a"),$map("b"),$map("c"))

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