3 ms·
> …it is terribly weak in that there is no logic for defaulting anything other than to zero. That is the weakness I addressed. IE, it may seem terribly weak up
by __david__ 12y ago
> …it is terribly weak in that there is no logic for defaulting anything other than to zero.
That is the weakness I addressed. IE, it may seem terribly weak up front, but in practice it's really not a weakness at all.
And, if zero is the default, then it doesn't matter if someone explicitly requested the default, or got the default by omission… It's like using 'exists' in Perl. It seems like it may be important to tell the difference between 'existing as undef' vs. not existing at all, but in practice it's just not needed (I can count the times I've legitimately used 'exists' during my almost 20 years of Perl programs on just a couple fingers).