5 ms·
The one issue I had with Dart, was typing was optional. But at the last DartCon they announced they are creating a strong typed mode, which forces typing and ty
by devsquid 10y ago
The one issue I had with Dart, was typing was optional. But at the last DartCon they announced they are creating a strong typed mode, which forces typing and type correctness and it generates higher preforming code. Yay!
- leftrightupdown 10y agoi think strong typing generates same code as optional typing if you are not using dart dev compiler.
- devsquid 10y agoI think they mentioned some gains in the size of the compiled JS. I don't remember tho.
- dragonwriter 10y agoWhen you say the "dev compiler" are you referring to the DartVM? While (embedded in Dartium browser) that's used for dev convenience for front-end, it's also (without the browser, obviously) the main target for back end Dart.
- devsquid 10y agoThe dev compiler translates Dart code into human readable JS code. So you can write a library in Dart and still provide JS code someone could realistically adapt to their environment or if Dart were to go away it would allow you an easy path of escape.
- munificent 10y agoThat's true today, but we're integrating strong mode into the VM and dart2js right now. Soon, the whole platform will have full support for it and all of the benefits you get from a sound type system.