On Mon, Sep 12, 2011 at 1:04 AM, Brendan Eich <[email protected]> wrote:
> Type Inference can do a lot. See http://doctorjs.org/.
>
> We do not want people adding guards all over their code, IMHO. Anyway, we 
> don't know have guards ES6.

While true, I've found that you can't really overcome the dynamic
property access unless you can somehow infer that you're operating on
an array of some fixed type or something like that. And function calls
and result types are actually far more difficult (though not
completely impossible) to do in es than in a strongly typed language.
Although I don't really see any clear way of getting around this,
without some kind of annotation (be it in the language or in
comments).

- peter
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to