let
syntax to distinguish bindings vs body
#51183
Labels
speculative
Whether the change will be implemented is speculative
let
syntax to distinguish bindings vs body
#51183
The documentation says
These look similar but do very different things:
I request a change to this syntax to make it easier to
One way to do this is adding a token to separate the place where
=
makes bindings from where it makes assignments, such aswithin
:This could be a 2.0 change but ideally there is change to address the issues in 1.x, allowing
within
.Other languages
In Scheme, bindings are separated with parentheses and assignments are made with
set!
:In OCaml,
in
separates the bindings component from the expression that produces the value:and likewise in Nix:
The text was updated successfully, but these errors were encountered: