Let's not make invariants const
Jakob Ovrum
jakobovrum at gmail.com
Sun Aug 5 02:36:56 PDT 2012
On Friday, 3 August 2012 at 19:19:24 UTC, Alex Rønne Petersen
wrote:
> Does anyone else find this behavior too strict?
Yes. Sounds like yet another case of forcing bitwise const on
something that should only be logically const.
Please stop forcing bitwise constancy on everything. Not
everything needs to work with immutable, it should be opt-in
(which in this case could mean explicitly marking the invariant
as const) for any type.
More information about the Digitalmars-d
mailing list