Re:JSX - a faster, safer, easier alternative to JavaScript
by detst on Wednesday May 30, 2012 @09:21PM
(#4045810)
The equivalent in Dart is:
main() {
print("hello world!");
}
and you know the "17259 lines" thing is FUD.EDIT: The above Dart code currently generates 445 lines of JS with comments and readable formatting. Obviously it's not quite where it needs to be but it's coming along quite well.
Re:JSX - a faster, safer, easier alternative to JavaScript
by drivebyacct2 on Wednesday May 30, 2012 @09:21PM
(#4045807)
Those are pretty unimportant metrics. Especially given that Dart's eventual intended usage is not to be compiled to JS and the infamous example you cite is strikingly unfair . The real world is much, much, much, much less code.
Besides taking something like "5 lines vs 8 lines for a hello world" and acting as if ALL code bases are automatically that much more bloated via a percentage like that is silly at worst, disingenuous at best.
the compiled JS source of the "hello world" example is only 0.5% of the code needed for the same task by dart. 91 lines vs 17259 lines code.