On Jan 17, 2005, at 9:47 PM, Tim Prince wrote:
> yet C, C++, java have the similar default fall-through behavior in
> switch
> statements, for cases not terminated by "break;"
> so it appears to have been accepted by a significant portion of
> compiled
> languages.
Well... I'm drifting a bit off-topic for the list, and I'm certainly
not trying to turn this into a language war (and I won't participate if
it goes there), but I'll note 2 things.
1. C++ and Java have direct ties to C, so this "significant portion of
compiled languages" basically means one language and derivatives of it.
One might thus want to be cautious about broad conclusions based on
what one might simultaneously call a "significant portion" and a
limited sample.
2. I had the impression that this "feature" was widely cited as a
common source of bugs, making it somewhat questionable whether it is a
good model to imitate. It was certainly a source of bugs in some of my
early feeble attempts at C programming.
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|