DEV Community

Discussion on: Should function arguments be reassignable or mutable?

Collapse
 
codemouse92 profile image
Jason C. McDonald

At work, one of our teams is designing a language for some specific use cases, and one of our top goals is "safety" - many of the users in-house will actually be graphics designers and content developers, neither of whom have extensive programming experience. I've brought this article up to the team for consideration, but I think I agree with your assessment: immutable-by-default helps prevent some rather nasty logic errors.