4 ms·
* Dart doesn't require "wrappers" or classes for anything, including hello world or Fibonacci. This has been pointed out in almost every comment where you've br
by spankalee 13y ago
* Dart doesn't require "wrappers" or classes for anything, including hello world or Fibonacci. This has been pointed out in almost every comment where you've brought it up. Yes, the examples might be confusing here, and so for pointing that out thanks and I will bring it up with the team, but repeating the claim that Dart requires wrapper classes for functions is completely unnecessary at this point.
* Most of the popular languages use braces for blocks. I sort of like significant whitespace, but it brings a lot of other problems. In the end braces are a pragmatic choice and have very little bearing on the utility or usability of a language.
* Dart also has a default visibility: public. You change it to private by adding a leading underscore.
- nailer 13y agoYes, I've been quite happy to acknowledge the it may just be poor docs, as you'll have noticed. As the target audience for dart (I'm a web developer, who makes large apps, and doesn't already know dart) all I have to go on is the actual dart website, so you'll forgive me if I expect it's demonstrations would be showing the language as it's best. Fix the docs, ditch the semicolons, and Dart may get more popular. I think marking up blocks twice is a waste of time, and leads to the possibility of inconsistencies between indentation and parenthesis, but appreciate using indentation for blocks is too different for some existing programmers.