DIP proposal: Enum parameters
Imperatorn
johan_forsberg_86 at hotmail.com
Mon Sep 26 12:01:03 UTC 2022
On Monday, 26 September 2022 at 11:55:00 UTC, Imperatorn wrote:
> On Monday, 26 September 2022 at 09:18:54 UTC, claptrap wrote:
>> On Saturday, 24 September 2022 at 07:51:32 UTC, Imperatorn
>> wrote:
>>> [...]
>>
>> Its not really adding a new meaning, enum already (somtimes)
>> means "do this at compile time", that's really the problem,
>> that usage of enum has literally nothing to do with
>> enumeration. It's like we've run out of English words so we
>> have to use "count" any time we want to say "now".
>>
>> Using enum to mean "compile time" or "manifest constant"
>> should be depreciated in favour of a keyword that actually at
>> least vaguely relates to those meanings.
>
> Hmm, yes, this is the other sane option. To actually introduce
> a new keyword to differentiate
Maybe a keyword like fixed, invariant could be used. I don't know
how immutable would work since it's already used.
More information about the Digitalmars-d
mailing list