auto storage class - infer or RAII?
Tydr Schnubbis
fake at address.dude
Sat Nov 11 20:14:30 PST 2006
Tydr Schnubbis wrote:
> Chris Nicholson-Sauls wrote:
>>> Considering that scope already exists as a keyword, I find this an excellent
>>> suggestion that is also very much clearer in meaning (I find auto to miss
>>> the target for both cases really :P ).
>>>
>>
>> I've already said it before, but it bears repeating yet again. I also prefer 'scope' for
>> this. Although 'infer' wouldn't be bad -- but please, please, please, not 'var'! It
>> smells too much like a scripting language construct, and besides, my Bovis code is
>> overflowing with actual variables named var. (Probably because of the BVar struct that it
>> passes most values around as. Go figure.)
>>
>
> 'scope' and 'infer' sound good to me, very to-the-point and unambiguous.
> No need to make people wonder if 'auto' works like in C or not, etc.
> Just drop it.
It just occurred to me that since it's not the keyword itself that makes
type inference happen, but the lack of a type specifier, maybe 'var' is
better than 'infer' after all. I mean, since it doesn't really do
anything, per se.
More information about the Digitalmars-d
mailing list