DIP proposal: Enum parameters
Imperatorn
johan_forsberg_86 at hotmail.com
Mon Sep 26 11:55:00 UTC 2022
On Monday, 26 September 2022 at 09:18:54 UTC, claptrap wrote:
> On Saturday, 24 September 2022 at 07:51:32 UTC, Imperatorn
> wrote:
>> On Friday, 23 September 2022 at 15:41:21 UTC, Quirin Schroll
>> wrote:
>>> [...]
>>
>> I'm a bit torn about static vs enum. I partly agree with prior
>> speakers about enum getting too many meanings, but on the
>> other hand, it's not really a problem imo.
>
> 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
More information about the Digitalmars-d
mailing list