ES3.1 Object static methods rationale document

Brendan Eich brendan at mozilla.org
Wed Jul 16 10:11:04 PDT 2008


On Jul 16, 2008, at 5:39 AM, Douglas Crockford wrote:

>> * Did you consider prototype's Object.extend method:
>>
>> Object.extend = function(destination, source) {
>>   for (var property in source)
>>     destination[property] = source[property];
>>   return destination;
>> };
>
> Yes we did.

And? The doc gives rationales for design decisions. What's the  
rationale for leaving Object.extend out?

/be




More information about the Es4-discuss mailing list