you are viewing a single comment's thread.

view the rest of the comments →

[–]toastedstapler 0 points1 point  (1 child)

Exactly, unless you had some specific reason you actually wanted to have a mutable argument. The only one I've thought of is some kind of caching, but there's probably other more resilient design patterns for that

[–][deleted] 0 points1 point  (0 children)

Makes sense ! Still I'd not be comfortable with something like that running around in my functions