miniblog.

← Back to all posts
14
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.

4 Comments

@wilfredh for me they are two very different things. := is assignment in an imperative programming language, leading to a state change. Let is the declaration of an equivalent name of an expression in a functional programming language.
@wilfredh I'd prefer `let` mostly for familiarity from both other languages and from PL literature (let bindings).