DEV Community

Discussion on: Should function arguments be reassignable or mutable?

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

I wonder how much the lack of consensus rests on history though. For languages in the C family it'd be kind of shocking if a new one had differnet semantics.

But I don't want history holding me back. It does seems the consensus on a "safe default" would be immutable and not-rebindable. It's only a default of course, and there must be a way to mark arguments as mutable.