5 ms·
Can this syntax be also used with the other browsers? i.e. IE and Chrome?
by creatio 13y ago
Can this syntax be also used with the other browsers? i.e. IE and Chrome?
- siddboots 13y agoNot yet, but it is in the ECMAScript 6 draft, so it will most likely be adopted eventually.
- ajryan 13y agoTypeScript supports this syntax. I believe they are trying to align with ECMAScript 6 as much as possible.
- bad_user 13y agoThe nice thing about TypeScript is that it compiles to EcmaScript 3, so you can target older browsers and still use these goodies. Also, TypeScript 0.9 is released, which includes niceties such as generics and type info overloading based on constant values passed in function parameters. It's pretty slick, if only it could output code optimized for Google Closure's advanced mode, for tree-shaking awesomeness.