Rick Waldron (2013-08-09T23:17:55.000Z)
domenic at domenicdenicola.com (2013-08-19T04:57:08.502Z)
On Fri, Aug 9, 2013 at 6:40 PM, Brendan Eich <brendan at mozilla.com> wrote: > No, refutable is what Axel means. He wants matching, so a failure or > refutation to cause fall through to next match. What we have in JS now with > o.p and in ES6 with let {p} = o; is irrefutable -- no way to mismatch, if > the property is missing you get undefined. > > So ! Is not too far off the mark. Recall that the late proposal was to > unify patterns used now in destructuring and later in matching by requiring > ? for irrefutability and making lack of ? mean "refutable". > My argument was specifically about the current meaning of the ascii exclamation "!" and that assigning it an additional context-based meaning that's quite the opposite of the current unary operator meaning, isn't a proposal that I would support. This is stated with no regard for previous refutable matching proposals.