News for hackers. Stuff that matters.
Re:Dart language by arctangent on Monday October 10, 2011 @06:36AM (#3093164)
I agree with you about the syntax - I was hoping for something more like Python.

Perhaps this is by design, though? Presumably the syntax doesn't look too bad to people who spend all day writing JavaScript (i.e. the target demographic for this language).

Presumably some bright spark will eventually write a Python-to-Dart compiler and then we'll all be happy :-)

Re:Dart language by nextparadigms on Monday October 10, 2011 @09:18AM (#3093624)
When you're trying to change things, it's best to appeal to the early adopters and to do give them a real reason to switch. Making it look the same and appealing to the same "user base" won't work, because then they might find little reason to switch in the first place.
Re:Dart language by cppsnob on Monday October 10, 2011 @03:43PM (#3095446)
Staying with the norm worked out quite well for both Java and C#.
Re:Dart language by artsrc on Monday October 10, 2011 @08:21PM (#3096505)
When I learned Java in 1996 I did not already know Haskel, Lisp and Python. Now I do.
Re:Dart language by cppsnob on Tuesday October 11, 2011 @02:04AM (#3097346)
I learned LISP and Python before Java and C#. The latter two are just as useful nevertheless.

The world's experience outside of HN makes me think Dart will not be at all inhibited by its Java like syntax. If it doesn't catch on, it will be for other reasons.

Re:Dart language by rdtsc on Monday October 10, 2011 @07:48AM (#3093352)
> I was hoping for something more like Python.

Me too! We already have a very readable, simple and elegant language, let's use that. Anyone know why that wouldn't have worked? (Not using the current CPython implementation but maybe the same syntax but with a different (web-only) set of libraries, that is...)

Re:Dart language by nailer on Monday October 10, 2011 @08:04AM (#3093389)
That's almost exactly what coffeescript is.

With Source Mapping in browsers, it also means you'll be able to get a .coffee line in your tracebacks too.

Re:Dart language by rdtsc on Monday October 10, 2011 @08:39AM (#3093500)
I agree. Yes, I would have liked to just have coffeescript as their new language. Maybe they could have just supported direct native execution on Chrome. Maybe Firefox would have followed.
Re:Dart language by LeafStorm on Monday October 10, 2011 @10:59AM (#3094029)
CoffeeScript solves most of the problems with JavaScript's syntax, but the problem they're trying to solve here isn't the syntax, it's the structure and semantics.
Re:Dart language by rayiner on Monday October 10, 2011 @10:18PM (#3096791)
Because Python's semantics are fucktarded.
Re:Dart language by mikeleeorg on Monday October 10, 2011 @01:18PM (#3094767)
I interpreted (no pun intended) this all to mean is that Dart is aimed at people who spend all day writing Java.