On 9/17/20 9:13 AM, Simen Kjærås wrote:

To be clear: I don't mind 'enum' being used this way, but if I were to do things over again, I would have used 'alias'.

fun fact: for a (very) brief time, D had a `manifest` keyword that did exactly what enum does in this instance (not even sure it made it into a release).

enum is a head scratcher of a name, for sure. But it works out just fine once you get used to it. I think of it as "compile time". To be honest, for what it does, enum is a very poor name. But because it's consistent, it works.

-Steve

Reply via email to