Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: