News for hackers. Stuff that matters.
Re:Vim 7.3.1000 by _pmf_ on Wednesday May 22, 2013 @02:01AM (#5749161)
One thing is that the compiler can warn about missing cases when using enums (GCC optionally does this); with defines, it's not clear that several values form a closed set.

The other thing is that function signatures can now show 'enum myenum e' instead of 'int v', which is much clearer.

Re:Vim 7.3.1000 by srl on Wednesday May 22, 2013 @08:17AM (#5750218)
> One thing is that the compiler can warn about missing cases when using enums (GCC optionally does this); with defines, it's not clear that several values form a closed set.

But here, the values /don't/ form a closed set, and using enums would imply that they do.