Suspicious code in revision 867140 (Left Items)
Woebbeking at kde.org
Wed Oct 8 22:57:19 BST 2008
On Wednesday 08 October 2008, Christoph Bartoschek wrote:
> I see that my adivce is quite exaggerated. However another advice is
> to always have a default case for switch blocks that catches the
> impossible cases. Because the extra value is such an invalid case it
> would be caught by the default case.
I know that it's recommended by some C++ gurus but I'm also not happy
with it as you don't get compiler warnings if you forget enum values in
a switch block.
More information about the kde-core-devel