Stick a fork in it

Bill Baxter dnewsgroup at billbaxter.com
Thu May 10 13:00:45 PDT 2007


renoX wrote:
> Walter Bright a écrit :
>> Chris Nicholson-Sauls wrote:
>>> Actually, that'll be 'final'.  The new 'invariant' will mean "this 
>>> *data* absolute does not change", and the new 'const' will mean "this 
>>> is an *immutable view* into data owned by other code, which *may* 
>>> change".  (If I'm remembering/understanding right.)
>>
>> You're right.
> 
> If the keywords are really like this, it's a bit weird, IMHO the most 
> interesting one is 'invariant' which happens to be also the one with the 
> longest name..

But invariant is also the one most likely to appear on a line all by 
itself with just a single variable and a simple initializer.  And most 
uses will be close to the left margin I suspect.  And even if invariant 
is the most interesting, I think const will still be the most used.

--bb



More information about the Digitalmars-d-announce mailing list