IDE support?
Peter van der Zee
ecma at qfox.nl
Mon Sep 12 00:51:32 PDT 2011
On Mon, Sep 12, 2011 at 1:04 AM, Brendan Eich <brendan at mozilla.com> 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
More information about the es-discuss
mailing list