[Swan-dev] enum message_role
Andrew Cagney
andrew.cagney at gmail.com
Sat Feb 2 17:19:16 UTC 2019
Did you read the comment above the definition?
On Sat, 2 Feb 2019 at 11:58, D. Hugh Redelmeier <hugh at mimosa.com> wrote:
>
> Why do the "real" values start at 3?
>
> In general, I prefer to let the compiler pick values of enums. (Of course
> that makes no sense if the values are specified by the IETF.)
>
> - the compiler makes fewer mistakes
> (I think that we have had bugs where the same value was asssigned
> twice.)
>
> - it removes a burden from the programmer
>
> - it leaves unimportant details out of the code
>
> - it indicates that the values are unimportant
> _______________________________________________
> Swan-dev mailing list
> Swan-dev at lists.libreswan.org
> https://lists.libreswan.org/mailman/listinfo/swan-dev
More information about the Swan-dev
mailing list