shouting versus dotting

Simen Kjaeraas simen.kjaras at gmail.com
Wed Oct 8 14:20:47 PDT 2008


On Wed, 08 Oct 2008 23:11:14 +0200, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> 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

Indeed. But my point is that not all manifest constants are enumerations,
as the name enum seems to suggest. That is my gripe with the choice. And
I fear it will continue like that.

-- 
Simen



More information about the Digitalmars-d mailing list