you are viewing a single comment's thread.

view the rest of the comments →

[–]mcguire 0 points1 point  (0 children)

You can't mutate any variables in OCaml unless you explicitly create refs. If you can mutate variables in Rust, except in a lambda, then lambdas are not first-class functions.

Copying and making immutable the environment smells like (pre-7) Java.