4 ms·
> "No mutable aliases" is a mistake; it prevents many useful programs. Yes, it prevents many useful programs. I think it also prevents many many many more use
by morning-coffee 2y ago
> "No mutable aliases" is a mistake; it prevents many useful programs.
Yes, it prevents many useful programs.
I think it also prevents many many many more useless broken incorrect programs from wreaking havoc or being used as exploit delivery vehicles.
- bluGill 2y agoWriting correct mutable code when there are alias in play is difficult and should be avoided I agree. However sometimes it is the right answer to the problem and so it should be possible for the best programmers to do. However only a minority of code needs that, and when it is needed you need to do a lot of extra review - I wish there was a way to make doing it accidentally impossible on C++.