Const sucks

Janice Caron caron800 at googlemail.com
Tue Sep 11 01:01:45 PDT 2007


On 9/11/07, Bruno Medeiros <brunodomedeiros+spam at com.gmail> wrote:
>
>
> 'invariant' = constant
> 'const' = read-only


It's simple, but - I would argue - the wrong choice. A better choice (in my
humble opinion) would be

const = constant
readonly = read-only

If it's not too late to change the keywords, that, to me, would be the way
to go.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070911/2cc4aa6f/attachment.html>


More information about the Digitalmars-d mailing list