3 ms·
Great article! Thanks for writing this up. If there are no runtime performance benefits, then I wonder how is it different from the Type Expressions in Google
by chintan 15y ago
Great article! Thanks for writing this up.
If there are no runtime performance benefits, then I wonder how is it different from the Type Expressions in Google Closure [1]?
1. http://code.google.com/closure/compiler/docs/js-for-compiler.html#types http://code.google.com/closure/compiler/docs/js-for-compiler...)
- munificent 15y agoThanks! Dart's type annotations in a lot of ways are inspired by Closure. The big difference is that Closure Compiler style JS is... well... hideous. You get some of the maintainability and modularity of a statically typed language (I can't count the number of times the Closure Compiler found errors for me), but the way you have to write JavaScript to get that makes it incredibly ugly.