Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!geac!alias!kpicott From: kpicott@alias.UUCP (Socrates) Newsgroups: comp.lang.c Subject: Re: switch break Keywords: switch break first language Message-ID: Date: 5 Oct 90 12:26:04 GMT References: <15611@csli.Stanford.EDU> <11428@alice.att.com> <1990Oct3.160403.517@Neon.Stanford.EDU> Sender: news@alias.uucp (USENET News) Organization: Alias Research, Inc. Toronto ON Canada Lines: 18 In <1990Oct3.160403.517@Neon.Stanford.EDU> dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen) writes: >Changing the default to breaking and allowing the word >continue to be used for fall-through where would make switch statements >cleaner and would save typing in both the fall through and other case --- >we wouldn't have to type "break;" and we wouldn't have to type >"/* YES --- I REALLY MEAN TO FALL THROUGH */." >Dave Eisen Home: (415) 323-9757 As long as we're changing the definition of C why not just add another keyword "fallthrough" to be used instead of "continue"? That way we have our structuring, we have our ability to fallthrough, and the loop functions "break" and "continue" can be consistent in their usage. -- Kevin Picott aka Socrates aka kpicott%alias@csri.toronto.edu Alias Research Inc. 110 Richmond St. E. Toronto, Ontario... M5C 1P1 (416) 362-9181 x336