|
|
|
|
|
by barosl
1868 days ago
|
|
It's just Rust. For some reasons, many new languages these days seem to get inspiration from the Rust syntax. For example, when Rust first came out, people said its choice to use "fn" to refer to functions was awful. Now, it's everywhere. Even Zig is using it. One of the reasons would be that Rust already made some reasonable choices regarding how to incorporate ML features into the C++-eseque syntax, so you don't have to worry about it. But it is indeed a bit sad that a more easy to use C++-eseque syntax that is substantially different from Rust isn't coming out nowadays. |
|
- `let` in a statement language (as opposed to let-binding expressions)
- comma-separating patterns (as opposed to using pipes to mimic BNF, also potentially causing confusion vs. tuple/record constructors)
- whitespace rather than semicolons for sequencing (though I'd imagine others might disagree on that front).
Some of that overlaps with Rust, to be sure -- I didn't pick up on those similarities at first.