Re:Immer is a library of persistent and immutable data struc...
by saagarjha on Thursday September 12, 2019 @02:20AM
(#20948571)
Unfortunately I am trying to wrap const to something that wasn’t designed this way: https://news.ycombinator.com/item?id=20948523
[ Parent
| on HN ]
Re:Immer is a library of persistent and immutable data struc...
by nurettin on Thursday September 12, 2019 @02:38AM
(#20948652)
Since soft const constraint is not part of the type, perhaps you could pass it to a lambda function that treats it as a const and another lambda function that treats it as mutable. A sort of const region and mutable region.