News for hackers. Stuff that matters.
Re:Immer is a library of persistent and immutable data struc... by heavenlyblue on Thursday September 12, 2019 @07:22AM (#20950201)
Technically copy-on-write is an implementation detail.

It may or may not be implemented this way.

Re:Immer is a library of persistent and immutable data struc... by slavik81 on Thursday September 12, 2019 @02:51PM (#20954957)
I mean that CoW classes like Qt's QStringList do the same data sharing without being immutable.
Re:Immer is a library of persistent and immutable data struc... by slavik81 on Thursday September 12, 2019 @10:35PM (#20958659)
Admittedly, it's pretty easy to accidentally make unnecessary non-const accesses in modern C++. An immutable API would certainly avoid a lot of qAsConst casts.