|
|
|
|
|
by cmmartin
2886 days ago
|
|
Grain is quite different. Grain is more functional (no classes or context, tuples). Dart compiles to Javascript. Grain compiles to web assembly. Dart requires you to define types. Grain provides type safety and zero runtime errors without ever defining types manually. |
|
A note to language designers: I can understand the { } but if you use them why do you also need the ( ) around the conditionals here?
The parser can find where the condition starts (after the if) and ends (at the {) and we won't have to type two useless characters. It's ergonomics.