On Friday, 18 September 2020 at 02:49:30 UTC, Mike Parker wrote:
On Thursday, 17 September 2020 at 22:25:47 UTC, claptrap wrote:
If enum means manifiest constant, or compile time constant,
then it makes more sense, as you allude to in a later post.
But 'enum' is a terrible name for that and I dont think my
brain will ever stop finding it incongruous.
And in my mind, what is a single-member enum if not a
compile-time constant? This is why naming is hard.
Yes all enum members are compile time constants, but not all
compile time constants are enum members. The later is a subset of
the former, but the reverse is not true. So the name implies the
subset but the feature implements the superset.