3 ms·
The potential big advantage of this construct is that you can use it in switch() statements, which you can't do with strings. But it's probably better to use e
by kragen 14y ago
The potential big advantage of this construct is that you can use it in switch() statements, which you can't do with strings. But it's probably better to use enum values, because the implementation-definedness removes the potential great advantage of this technique (that you can serialize these multicharacter literals nicely; consider SMTP implementations looking for 'HELO', 'MAIL', etc.).