News for hackers. Stuff that matters.
Re:LtU on Dart by rayiner on Tuesday October 11, 2011 @06:49PM (#3100742)
I mean there are articles on LtU about typing parsers, expressing semantics through typing, etc. Which is fine its a forum with a specific niche, what is sad is that niche has come to totally dominate PL design in academia.

And at least the static type system in Dart is optional. Yet all I hear about Dart is digs at its static type system. Can't express non-nulity, has covariant generics, etc. Who really cares? It's designed to throw up a warning when you pass a string to Math.min, not to allow expressing every static invariant possible through the static type system.

Re:LtU on Dart by chc on Wednesday October 12, 2011 @01:19AM (#3101601)
The reason people are deriding it is because it's touted as a feature of the language, but it's really a very unhelpful and relatively powerless type system. Enforcing non-null is more useful than warning me if I pass a string to Math.min. The amount of time I've spent debugging strings passed to Math.min (so to speak) is a rounding error next to the time I've spent weeding out unwanted nulls.

Imagine if I were to put out a language with great fanfare given to the fact that it has a built-in string type. What would your reaction be?