Re:Announcing Dart 2 Stable and the Dart Web Platform
by munificent on Tuesday August 07, 2018 @08:48PM
(#17712281)
> In fact you could do almost all of this in JS even before ES5.
Well you do get static type checking if you write it in Dart, but I see your point. :)
It's also something you could do in Java, with the exception of having to wrap main with the obligatory EntryPoint class.
I think this just goes to show that good code can be written in almost any language (except Perl of course) because writing good code almost always just means writing obvious code, which necessitates avoiding cleverness and obscure features (literally all of Scala), twisting control flow (I'm looking at you State monads and call/cc), or adding too many indirections due to limitations of the language (Java).