Is there any need to keep the final break in a switch which uses a
default at the end?
Of course not. breaks are even not mandatory in the non-final cases. It
just depends on what you are aiming to.
I realise that breaks are not mandatory (though if not using them that
should be documented), but it seems to be me that there are never any
circumstances where putting a break in the default: section can make any
difference. Would others agree?
After all, the default is the last in the list, so the break automatically
happens if it's got that far down.
Martin Lucas-Smith
www.geog.cam.ac.uk/~mvl22 www.lucas-smith.co.uk
Senior Computing Technician (Web Technician)
Department of Geography, University of Cambridge (01223 3)33390
& Webmaster, SPRI
Scott Polar Research Institute, University of Cambridge