Andrea Giammarchi (2014-09-24T22:22:31.000Z)
Agreed with Tab, in terms of composing inherited functionality it's hard to
beat prototypal and the ease of `Class.prototype.__noSuchProperty__ =
function(){ ... };` traitish approach.

I also think Proxy already gives us a way to work around the
`__noSuchProperty__` "issue"

On Wed, Sep 24, 2014 at 11:17 PM, Tab Atkins Jr. <jackalmage at gmail.com>
wrote:

> On Wed, Sep 24, 2014 at 2:56 PM, Brendan Eich <brendan at mozilla.org> wrote:
> > Brendan Eich wrote:
> >>
> >> Tab Atkins Jr. wrote:
> >>>
> >>> This works great as a general principle, but honestly tons of
> >>> languages have already forged this path.  It's pretty straightforward,
> >>> I think.
> >>
> >>
> >> I made the case for building it in sooner, but TC39 wanted "less sooner"
> >> based on library usage. There was a minority position (as voiced; could
> be
> >> majority) that argued JS is different, object detection plus optional
> >> "fields" means this is the wrong direction.
> >
> > Not trying to be controversial ;-). Would you use ES6 classes and have
> the
> > ones you wrote all extend NoSuchPropertyClass?
>
> Using subclassing to bung in some arbitrary trait is really terrible.
> :/  It requires either adding it up high in your class hierarchy, or
> having to write a custom NoSuchPropertyClass which extends your
> superclass, so you can then extend it.
>
> I'm rather surprised that the group actually considered that sort of
> code to be appropriate - it's known that it doesn't compose well with
> other traits-as-superclasses or normal subclassing.
>
> ~TJ
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140924/a650d675/attachment-0001.html>
domenic at domenicdenicola.com (2014-09-30T16:49:41.066Z)
Agreed with Tab, in terms of composing inherited functionality it's hard to
beat prototypal and the ease of `Class.prototype.__noSuchProperty__ =
function(){ ... };` traitish approach.

I also think Proxy already gives us a way to work around the
`__noSuchProperty__` "issue"