const

sambeau no-spam-for-sambeau at mac.com
Fri Mar 28 08:52:18 PDT 2008


Janice Caron Wrote:

> So, while we're having (...another...) const rethink, here's my list
> of "ideals".
> 
> (1) Rename everything. Like many other people, I've always thought the
> existing names weren't quite right.
> 
>     BEFORE -> AFTER
>     const -> in
>     invariant -> const
>     enum -> const

I like everything apart from "in". "in" to me is for arrays and sets.
"inv" would be fine though. "at" might be better than as it reminds you that it is an address.
I have floated "let" in the past too.





More information about the Digitalmars-d mailing list