Article: Why Const Sucks

Atila Neves atila.neves at gmail.com
Mon Mar 5 11:38:05 UTC 2018


On Monday, 5 March 2018 at 10:57:35 UTC, Jonathan M Davis wrote:
> Here's something I wrote up on const:
>
> http://jmdavisprog.com/articles/why-const-sucks.html
>
> I suppose that it's not exactly the most positive article, but 
> I feel that it's accurate.
>
> - Jonathan M Davis

My biggest issues with const are, as you wrote, ranges and 
postBlit. I still use `const` everywhere unless I can't.

I used to use `immutable`, but gradually came around to only 
using it if I have to send data to another thread, otherwise it's 
too much of a hassle.

Atila


More information about the Digitalmars-d-announce mailing list