shouting versus dotting

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Oct 8 14:11:14 PDT 2008


Simen Kjaeraas wrote:
> Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> 
>> Simen Kjaeraas wrote:
>>> Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
>>>
>>>> Leandro Lucarella wrote:
>>>>> "enum" as the way to declare manifest constants were much more ugly 
>>>>> than
>>>>> "!(", and most of the people were against it. I don't see why ".(" 
>>>>> should
>>>>> be introduced.
>>>>
>>>> Ugly or not, enumerated symbols were manifest constants to begin 
>>>> with. That's kinda hard to argue against because it's a sheer fact.
>>>
>>> All bears are animals, so lets call all animals bears. See where this 
>>> is wrong?
>>
>> The correct reasoning to apply is, if you see a white bear, would you 
>> call it a different way?
>>
>> Andrei
> 
> Mayhaps. But to me, a manifest constant is not just a bear of a
> different color, but possibly one with six legs, a prehensile tail,
> bat wings, and riding a helicopter. And I'm pretty sure I would not
> classify that as a bear, even if it still had fur and powerful jaws,
> and would make for a fun teddy.

But you just agreed that enum is a manifest constant.

Andrei



More information about the Digitalmars-d mailing list