Matthew Robb (2015-02-12T18:47:13.000Z)
When I brought this up my thoughts were to have the classes flattened to a
linear inheritance model. Yeah this means an ownProp copy from the
constructor for statics and the prototype for instance onto methods. That
might be a limitation but currently class syntax is javascript's nicest way
to describe behavior units.


- Matthew Robb

On Thu, Feb 12, 2015 at 12:32 PM, Sébastien Cevey <seb.cevey at guardian.co.uk>
wrote:

> I would agree.
>
> How would you use classes as traits -- are you talking about multiple
> inheritance? Or flattened to a linear inheritance model?
>
> On 12 February 2015 at 16:35, Andrea Giammarchi <
> andrea.giammarchi at gmail.com> wrote:
>
>> Without going down full specification/implementation details, does anyone
>> believe that classes should/could be used, in the future, as traits/mixins
>> too?
>>
>> I find that an anty pattern.
>>
>> I think traits should be just plain objects with an initializer or some
>> special object flagged as trait and I'd rather leave inheritance and
>> classes features outside this future feature.
>>
>> Thoughts? Thanks!
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>
>
> --
> Sébastien Cevey
> Software Developer
>
> ------------------------------
> Visit theguardian.com. On your mobile and tablet, download the Guardian
> iPhone and Android apps theguardian.com/guardianapp and our tablet
> editions theguardian.com/editions.  Save up to 57% by subscribing to the
> Guardian and Observer - choose the papers you want and get full digital
> access.  Visit subscribe.theguardian.com
>
> This e-mail and all attachments are confidential and may also be
> privileged. If you are not the named recipient, please notify the sender
> and delete the e-mail and all attachments immediately. Do not disclose the
> contents to another person. You may not use the information for any
> purpose, or store, or copy, it in any way.  Guardian News & Media Limited
> is not liable for any computer viruses or other material transmitted with
> or as part of this e-mail. You should employ virus checking software.
>
> Guardian News & Media Limited is a member of Guardian Media Group plc. Registered
> Office: PO Box 68164, Kings Place, 90 York Way, London, N1P 2AP.  Registered
> in England Number 908396
>
>
>
> _______________________________________________
> 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/20150212/9505c91b/attachment.html>
d at domenic.me (2015-02-17T20:23:52.921Z)
When I brought this up my thoughts were to have the classes flattened to a
linear inheritance model. Yeah this means an ownProp copy from the
constructor for statics and the prototype for instance onto methods. That
might be a limitation but currently class syntax is javascript's nicest way
to describe behavior units.