Best practices of using const
    Kagamin 
    spam at here.lot
       
    Tue Feb 19 16:19:02 UTC 2019
    
    
  
On Tuesday, 19 February 2019 at 15:30:22 UTC, Atila Neves wrote:
> I keep hearing how const is nigh unusable in D, and except for 
> ranges I litter my code with const everywhere, pretty much just 
> as often as I used in C++.
I once spent a good amount of effort to annotate my code with 
pure and inout only to find a compiler bug, then I realized that 
annotations aren't really needed, because the collection is 
inherently mutable anyway (appender).
    
    
More information about the Digitalmars-d-learn
mailing list