3 ms·
While there is some objective, measurable aspect to 'easier to read' it is mostly dominated by what someone is used to. The only C style syntax that's used is
by rkangel 7y ago
While there is some objective, measurable aspect to 'easier to read' it is mostly dominated by what someone is used to.
The only C style syntax that's used is block grouping (curly braces), and statement separation (semicolon). Unless you go for using whitespace to perform those functions, you're making fairly arbitrary choices about which symbol to use, and those two are familiar.
Most other syntax is really quite different:
* variable definition has a completely different order to it with (optional) type ascription
* function definition has some aspects of C++ (<> for types in generic functions) but much else is different - e.g. position of return type, where clauses, the 'fn' keyword, type ascription