Apparently, they think about standardizing __ptoto__ too.

Sent from my smartphone.
On Sep 27, 2011 8:14 PM, "Xavier MONTILLET" <[email protected]> wrote:
> Btw, they're speaking of adding an new proto operator <| that could be
> used with an object before and a litteral after and it would set the
> litteral's prototype to the object.
> The problem with __proto__ is performance so <| will only work at
> object creation. You can't change the prototype of an existing object
> (or maybe it creates another object).
>
> On Tue, Sep 27, 2011 at 8:09 PM, Nick Morgan <[email protected]> wrote:
>> On 27 September 2011 17:25, Lasse Reichstein <[email protected]>
wrote:
>>
>>> Also, when doing pure object-based design, you have to keep your
categories
>>> clear. Your Human and Man objects are clearly prototype objects, not
>>> instance objects. They are meant to be inherited, not used directly. The
>>> object you create with Object.create(Man) is an instance object
representing
>>> a single man. There is nothing distinguishing them in the code,
>>> though. Constructor functions holding prototype objects does that for
you.
>>> /L
>>
>> I don't understand what you're saying here. You'd only use
>> Object.create to create instances based on other instances, not on
>> constructor functions. So you don't need to keep categories clear -
>> everything is an object, there are no constructor functions. Or am I
>> missing something?
>> --
>> Nick Morgan
>> http://skilldrick.co.uk
>> @skilldrick
>>
>> Save our in-boxes! http://emailcharter.org
>>
>> --
>> To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
>>
>> To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
>>
>> To unsubscribe from this group, send email to
>> [email protected]
>>

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to