Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Akronymus
on July 13, 2022
|
parent
|
context
|
favorite
| on:
Functional programming is finally going mainstream
> 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
on July 13, 2022
[–]
just pass a const reference. It's immutable anyway.
Akronymus
on July 13, 2022
|
parent
[–]
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:
And even then, there is the question of whethwr it is a deep or shallow copy on receiving or write.