Now I am using ActionScript to make a point, since I have not yet programmed in it to be able to address how much Dart does or does not mimic the AS syntax.
Is ActionScript "type-optional" as with Dart?
If dart wants to replace javascript it has to be better, and by a long shot. at the moment I'm just not seeing that it is
Evaluating "a == a" could return the string "potatoe" which would evaluate to false (and make no sense).
I don't see the big deal with this. If your == operator is buggy, it's buggy, no matter whether you can only return a boolean or some random other type.
(I personally found most of the criticism in the article to be in the same vein: inflammatory, superficial comments after a quick reading of the spec.)
The fact that a==a can return false isn't really the main criticism here. You could override the == operator in C++ to do that too. The article is claiming that having a literal boolean true be the only "true" value is an issue. I think I agree with this just because this code evaluating to false is out of line with every other language out there, and I haven't seen a case (yet?) that it's an improvement for any other practical purposes:
a = 1;
if(a) {
print("A is true!");
}Say Google unveiled a Scala, Haskell or even Go like language.
Sure, the hip crowd would be pleased. But would it ever gain traction with the web dev masses?
Hell, those languages have not that much traction even outside web development.
Now, if Google had unveiled something like Ruby or Python, that would have also pleased the HN crowd (maybe a little less that some extravagant functional language with crazy type tricks). And it could possible gain traction too. But that too would hardly be revolutionary.
(Not a huge jump for Android programmers, either. In light of the Oracle lawsuit avalanche, this might be interesting…)