DEV Community

Discussion on: Should function arguments be reassignable or mutable?

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

Part of my motivation for the question was a defect in the Leaf compiler (my language). The fix is relatively simple, but it does imply an efficiency lost for calling functions.

As you say, if I limit what can be done with arguments by default, I gain a lot of flexibility in the compiler.