Is there any real reason to use "const"?

Guillaume Piolat first.last at gmail.com
Mon Jan 24 14:22:55 UTC 2022


On Monday, 24 January 2022 at 10:06:49 UTC, rempas wrote:
>
> What do you guys think?

const has utility at interface boundaries. You don't want an API 
to be used incorrectly.
If it's internal code though, it only helps the maintainers, and 
is often line noise.


More information about the Digitalmars-d mailing list