Re:"Hello World" in Dart, compiled to JavaScript
by rayiner on Tuesday October 11, 2011 @02:30AM
(#3097429)
I agree CoffeeScript has nicer syntax, but it retains all of Javascript's semantic warts. Whatever quibbles you might have about Dart's syntax (it's young yet!) it's semantics are much nicer than Javascript.
[ Parent
| on HN ]
Re:"Hello World" in Dart, compiled to JavaScript
by ootachi on Tuesday October 11, 2011 @02:52AM
(#3097489)
Well, except for the unsound covariant generics, the lack of an arguments object, and the implicit downcasts, and so on...
Re:"Hello World" in Dart, compiled to JavaScript
by rayiner on Tuesday October 11, 2011 @04:05AM
(#3097675)
Hint: Dart is a dynamically typed language. The covariant generics and the implicit downcasts are there on purpose.
The lack of an arguments object is a feature not a bug. A rest argument like in Lisp is much better for optimization. The design isn't done yet given that Dart has optional arguments a rest argument would fit in.
Re:"Hello World" in Dart, compiled to JavaScript
by cubicle67 on Tuesday October 11, 2011 @09:33AM
(#3098453)
I agree CoffeeScript has nicer syntax, but it retains all of Javascript's semantic warts
that comes across as both patronising and ignorant (although it could be me who's the latter). any examples of "all Javascript's semantic warts" coffeescript retains?