News for hackers. Stuff that matters.
Re:Of parser-fetishists and semi-colons by batista on Tuesday April 17, 2012 @10:06AM (#3852594)
>It wasn't a "fragile edge case", it worked just fine with no ambiguity in every javascript implementation.

Yes, it worked according to how the parser was designed.

But it depended on a frowned-upon parser feature (AST), that can lead to ambiguous or faulty results in similar cases, and for no good reason. When the creator of the language and its biggest guru disagree with your code style, well, there's no much room for an argument, even if all known implementations work fine with your code.

He also did an idiotic ?: operator abuse instead of a clear "if" in the same exact line. He probably likes silly "succinct code" tricks, which even C people wouldn't touch with a large pole...

There are no comments on this comment yet.