Improving ECMAScript as a compilation target

William Edney bedney at technicalpursuit.com
Wed May 6 04:16:14 PDT 2009


All -

On May 6, 2009, at 1:15 AM, Brendan Eich wrote:

> But obj.prop() is worth a catchall, this is the popular  
> __noSuchMethod__ case, so that one does not have to create a method  
> for each value of 'prop' and retain it in obj under that name. The  
> call can be forwarded without any proxy or cloned method.

Indeed. As the original you-know-what disturber that got the whole  
__noSuchMethod__ ball rolling, I would argue that having to do so  
would dilute almost all of the value. It is precisely because  
__noSuchMethod__ is a catch *all*, for known and unknown properties  
(especially important in a language where new properties can be  
introduced on-the-fly), that makes it so valuable.

Cheers,

- Bill


More information about the es-discuss mailing list