Re:"Hello World" in Dart, compiled to JavaScript
by swannodette on Tuesday October 11, 2011 @01:27AM
(#3097248)
Does CoffeeScript have all these data structures, http://www.dartlang.org/docs/api/index.html?
[ Parent
| on HN ]
Re:"Hello World" in Dart, compiled to JavaScript
by cubicle67 on Tuesday October 11, 2011 @02:22AM
(#3097399)
That's a long list, so probably not. Does Dart have an existential operator?[0]
zip = lottery.drawWinner?().address?.zipcode
Hey look, I know they're not really comparable. They're solving different problems, are at different stages in maturity and have a different philosophy on how to do things. I also think that Hello World is probably the worst way to compare any two languages, but it's a fun exercise anyway[0] example code from http://jashkenas.github.com/coffee-script
Re:"Hello World" in Dart, compiled to JavaScript
by DanielRibeiro on Tuesday October 11, 2011 @02:00AM
(#3097340)
You can always import JS.Class: http://jsclass.jcoglan.com/
Re:"Hello World" in Dart, compiled to JavaScript
by swannodette on Tuesday October 11, 2011 @02:05AM
(#3097351)
Which is > 300K before minification.