Hacker News new | ask | show | jobs
by Akronymus 1433 days ago
> What you're referring to is more of what happens when someone is writing functional code in a language that's not functional.

And even then, there is the question of whethwr it is a deep or shallow copy on receiving or write.

1 comments

just pass a const reference. It's immutable anyway.
Unless that ref holds a mutable reference. C++ doesnt make it easy at all to have something be truly immutable.