Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!rpi!crdgw1!antarctica!davidsen From: davidsen@antarctica.crd.GE.COM (william E Davidsen) Newsgroups: comp.lang.c Subject: Re: The Sins of K&R Message-ID: <12338@crdgw1.crd.ge.com> Date: 2 Oct 90 16:05:00 GMT References: <31604@nigel.ee.udel.edu> <12180@crdgw1.crd.ge.com> Sender: news@crdgw1.crd.ge.com Reply-To: davidsen@crdos1.crd.ge.com (bill davidsen) Organization: GE Corporate R&D Center, Schenectady NY Lines: 22 In article <12180@crdgw1.crd.ge.com>, volpe@underdog.crd.ge.com (Christopher R Volpe) writes: |> How about combining the "let's make break implicit" idea with the |> "lets add ranges and lists" idea and solve everybody's problems? E.g.: |> Ranges were discussed by X3J11, but not added to the language. Pity. All this doesn't solve the problem that it is a lot easier to use break to get out of a switch than to use goto's to simulate fallthrough. Look at some existing code and see what it would look like changed. Once upon a time there was a language called FLECS, which compiled into FORTRAN. We modified it locally in a number of way, including two forms of case statement, one of which fell through and one which didn't. Another construct which looks like a switch but doesn't fall through would be a way to solve this without breaking old programs. That doesn't mean I think we need it. I really did like the endcase statement, from the standpoint of not overloading the use and meaning of break. Then again, people who ever used BCPL are getting fewer and harder to find.