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

[Bug 29241] New: [FO31] Minor inconsistencies in argument names

From: <bugzilla@jessica.w3.org>
Date: Mon, 26 Oct 2015 09:18:50 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29241-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29241

            Bug ID: 29241
           Summary: [FO31] Minor inconsistencies in argument names
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.1
          Assignee: mike@saxonica.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

Could the second argument $index be renamed to $position, 

    array:get($array as array(*), $index as xs:integer) as item()*

to match other function signatures

    array:remove($array as array(*), $position as xs:integer) as array(*)
amd
    array:insert-before($array   as array(*), $position  as xs:integer, $member
 as item()*) as array(*)


Similarly, the first argument of

array:sort($input as array(*)) as array(*)
array:sort($input        as array(*), $key       as function(item()*) as
xs:anyAtomicType*) as array(*)
array:flatten($input as item()*) as item()*

be renamed to $array, matching the rest of the "array" functions.

While these are trivial changes, it might be beneficial for IDE users.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 26 October 2015 09:18:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 26 October 2015 09:18:55 UTC