DEV Community

Discussion on: Should function arguments be reassignable or mutable?

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

I think I'll be going this way as well now -- I don't have the immutable feature yet, on my infinite todo list.

As to normal variables, it'll be easy to introduce, since declarations now use var implying variable, thus mutable, and functions use defn implying a literal function. I can also add a let which denotes an immutable value.