https://issues.dlang.org/show_bug.cgi?id=12420
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #10 from Steven Schveighoffer <[email protected]> --- (In reply to Denis Shelomovskij from comment #9) > I can't believe anyone can accept bahaviour shown in Comment 6. I agree with you, and I have argued as much in the NG. The compiler should either enforce immutability, or not care. Enforcing const has all of the annoyance, with none of the guarantee. However, practicality dictates that we cannot force immutability on everyone who wants to use an AA. In particular, immutable classes are nearly useless. I would like to see AA's remove the const enforcement. I'm not sure how I feel about immutable enforcement, but it would be a nice option to add once AA's are fully library types. --
