Blog series to teach and show off D's metaprogramming by creating a JSON serialiser
Laurent Tréguier
laurent.treguier.sink at gmail.com
Mon Nov 4 12:16:58 UTC 2019
On Monday, 4 November 2019 at 08:25:11 UTC, Patrick Schluter
wrote:
> I don't get why it confuses people.
> In all languages I know (C, C++, Java, Pascal, etc..) they are
> used to associate a compile time symbols with some quantities,
> i.e. the definition of constants.
> When an enumeration only consists of 1 value, then the
> enumeration is this value itself.
If I'm not mistaken `enum` must come from "enumerate" or
"enumeration", so it's easy to instinctively think of enums as
having multiple possible values; using such a word for a single
value is a bit counter-intuitive IMO.
More information about the Digitalmars-d-announce
mailing list