W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

[Bug 25391] New: Add default to a sequence e.g. sequence<DOMString> = [];

From: <bugzilla@jessica.w3.org>
Date: Fri, 18 Apr 2014 20:55:57 +0000
To: public-script-coord@w3.org
Message-ID: <bug-25391-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25391

            Bug ID: 25391
           Summary: Add default to a sequence e.g. sequence<DOMString> =
                    [];
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: jib@mozilla.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

Sometimes knowing the difference between someone passing in an empty sequence
versus nothing is useful, but at other times an invariant that didn't care
would be better.

In the latter case, the Optional<>::WasPassed() and Optional<>::Value()
bindings get in the way when assuming an empty array would make for simpler
code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 18 April 2014 20:55:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:21 UTC