3 ms·
> 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 que
by Akronymus 4y 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.
- deltaonenine 4y agojust pass a const reference. It's immutable anyway.
- Akronymus 4y agoUnless that ref holds a mutable reference. C++ doesnt make it easy at all to have something be truly immutable.
- deltaonenine 4y ago