On Thursday, 17 September 2020 at 10:53:48 UTC, Mike Parker wrote:
[snip]

I can attest that in the 17 years I've been hanging around here, the fact that enum is used to indicate a manifest constant has not been a serious source of WTF posts. So I think "pretty much everyone coming to D" have decided it's either perfectly fine or perfectly tolerable. It's the sort of thing that may not be obvious, but once you figure you absorb it and get down to coding. I know some people would prefer it were something else and some don't care. I'm squarely in the camp that thinks it makes perfect sense and it would be silly to create a new keyword for it.

A talk at dconf 2019 provided an alternative approach to using enum for manifest constants:

http://dconf.org/2019/talks/marques.html

Reply via email to