On 12/18/2013 04:47 PM, Maxim Fomin wrote:
On Wednesday, 18 December 2013 at 15:29:44 UTC, bearophile wrote:
Kenji Hara:

I think adding new keyword/attribute just for readability is overkill.

Making the code more explicit and easy to understand, using the right
words, is rather important. So I like @unique, that can probably be
re-uses for another purpose.

What's worse than having many keywords is having them with multiple
meanings. Otherwise are you willing to explain again and again to
future people in D.learn that specific "const" doesn't really mean
const, it really means... and so on :-)

Bye,
bearophile

Which additional meaning will const qualifier have?

It will be used to annotate a postblit that requires all fields with indirections to be re-initialized with freshly allocated data instead of a postblit that is used during copying of a const object. (There will be no way to define such a const postblit, because the DIP assumes this to be useless.)

Reply via email to