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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to