[Swan-dev] explicitly assigned enum values

Paul Wouters paul at nohats.ca
Wed Jul 16 17:51:05 EEST 2014


On Tue, 15 Jul 2014, D. Hugh Redelmeier wrote:

> | That I don't like. Some code uses existence of an enum name as proof
> | some value is vaild, so made up values, even if 0, are a bad idea.
>
> That's only if there is a corresponding enry in the enum_names for the
> enum.  I would leave that name out.  So the result would be just as
> you want.

Oh that true, 0 can be easilly skipped. So then I'm fine with this
proposal.

Paul


More information about the Swan-dev mailing list