Re: ECMA TC 39 / W3C HTML and WebApps WG coordination

On Sep 25, 2009, at 1:18 PM, Brendan Eich wrote:

> I will stop the over-citing madness here and now :-P.
>
> The struggle to formalize ArrayLike, which seems like a common goal  
> for ES the core language and for WebIDL's ES bindings, makes me want  
> to give an exception to the "catchalls considered harmful for new  
> interfaces" injunction. I agree that indexing into array-likes, with  
> no liveness magic, seems containable and desirable. ES folks haven't  
> nailed down ArrayLike yet (our fault) and we would benefit from  
> collaboration with WebIDL folks here.
>
> So if you are doing more ArrayLike interfaces, let's keep talking.  
> Don't let at least my catchalls-considered-harmful statements stop  
> progress on ArrayLikes.

Perhaps when catchalls are considered for ECMAScript, there could b a  
way to encapsulate the specific pattern of index access, so you can  
have magical getters and setters for all index properties (integer  
numbers in range to be an array index) without having to install a  
full catchall for all properties.

Regards,
Maciej

Received on Friday, 25 September 2009 23:57:53 UTC