Y
Hacker News
new
|
ask
|
show
|
jobs
by
mplewis9z
916 days ago
If you haven’t tried Swift, copy-on-write is one of the core tenets of its value types (`struct`s, basically), and it’s almost entirely transparent.
1 comments
GrumpySloth
916 days ago
It’s only transparent for types that already implement copy-on-write. For custom types you need to implement it yourself, using reference typed private properties.
link