On Friday 07 December 2007 10:11, Charles Oliver Nutter wrote:
Guillaume Laforge wrote:
That's why I said the "usual" Java cases.
Not the uncommon ones :-)
I would agree with default being anywhere but the end, but I
frequently use fall-through in cases.
This is not always an option. Often the processing required for the
default case coincides with an explicitly enumerated case.
Plus, "default" doesn't mean "afterthought." There's no real reason it
should go last. You can make the argument that it belongs first when
it's a distinct case (not handled along with another enumerated case).