domenic at domenicdenicola.com (2013-11-12T18:52:50.886Z)
On Fri, Nov 1, 2013 at 12:50 AM, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> ```js
> [isSpecialString]() {return isSpecialString in this};
> ```
So this is basically what we have for DOM objects right now. And what
we're asking for is having this elevated to language-supported
construct. Be it in the form of a method or something else. It's not
really clear why sometimes you would use if `brand in obj` and other
times `Array.isArray(obj)`. Seems rather messy.
On Fri, Nov 1, 2013 at 12:50 AM, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote: > [isSpecialString]() {return isSpecialString in this}; So this is basically what we have for DOM objects right now. And what we're asking for is having this elevated to language-supported construct. Be it in the form of a method or something else. It's not really clear why sometimes you would use if "brand in obj" and other times "Array.isArray(obj)". Seems rather messy. -- http://annevankesteren.nl/