Is there any real reason to use "const"?

rempas rempas at
Tue Jan 25 08:44:21 UTC 2022

On Monday, 24 January 2022 at 20:31:36 UTC, Patrick Schluter 
> I'm an extremly minimalistic programmer, I avoid unecessary 
> parenthesis and brackets whenever I can.

Makes sense when your code if finalized and (properly) checked 
but bugs can be introduced if you haven't finished your code. I 
find myself doing something like the following:

if (val)             { one_line_statement(); }
else if (other_val)  { one_line_statement(); }

I think it doesn't take much space and at the same time, it looks 
very readable.

More information about the Digitalmars-d mailing list