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


            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

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