News for hackers. Stuff that matters.
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.