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

[Bug 29685] New: [FO31] array:put()

From: <bugzilla@jessica.w3.org>
Date: Sat, 04 Jun 2016 13:11:46 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29685-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29685

            Bug ID: 29685
           Summary: [FO31] array:put()
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.1
          Assignee: mike@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

I do know that we are past the point of adding new functions because they are a
good idea, but in writing an application to make use of arrays recently, I
found the absence of array:put() really painful. That is:

array:put($array, $index, $value)

which returns

$array => array:remove($index) => array:insert-before($index, $value)

that is, it replaces the value at position $index with a new value.

This seems such a basic omission that I wonder if we should consider it even at
this late stage.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Saturday, 4 June 2016 13:11:48 UTC

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