Using const to Enforce Design Decisions

Rubn where at is.this
Mon Mar 25 20:59:41 UTC 2019


On Monday, 25 March 2019 at 13:00:07 UTC, Mike Parker wrote:
> Marco de Wild has penned a tutorial on D's const for the D 
> blog. He gives an overview of the feature, how it differs from 
> C++, and shows how he employed it in his mahjong game.
>
> The blog:
> https://dlang.org/blog/2019/03/25/using-const-to-enforce-design-decisions/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/b5a9jm/using_const_in_d_to_enforce_design_decisions/

I guess obligatory 
http://jmdavisprog.com/articles/why-const-sucks.html

Would be nice to see the source code for this mahjong game as 
well.


More information about the Digitalmars-d-announce mailing list