Do we associate syntax with semantics? Would you find ML syntax with dynamic types weird, or a lisp with Java-style var type declarations?
miniblog.
Related Posts
Are there any developer experience advantages for `x := 1` over `let x = 1`?
A `let` keyword probably improves parsing error behaviour, and makes declarations more visible.
:= is more concise though.
Bootstrapping a language can be immensely satisfying.
I've added the ability to define stub types in the Garden stdlib and suddenly I don't need to special-case Int or String! They're just normal type declarations.
OCaml's syntax is interesting: there are very few characters different between variable and function declarations:
let foo = bar 123
vs
let foo x = bar x
Taking the idea of a lisp-1 to even the syntax!