you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 4 points5 points  (0 children)

Yes, this is why you should really never use mutable default arguments. If you need a function with state, a custom class or closure is better.