Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!brutus.cs.uiuc.edu!psuvax1!barad-dur!schwartz From: schwartz@barad-dur.endor.cs.psu.edu (Scott E. Schwartz) Newsgroups: comp.lang.c Subject: Re: problems/risks due to programming language Message-ID: Date: 23 Feb 90 21:36:57 GMT References: <1597@awdprime.UUCP> <8133@hubcap.clemson.edu> Sender: news@cs.psu.edu (Usenet) Organization: Penn State University Computer Science Lines: 22 In article James Buster writes: >I claim that the possibly erroneous replication of code required by the Ada >case statement, e.g. >-- in approximate Ada style >switch foo is > case 5 => > statement1; statement2; statement3; > case 7 => > statement1; statement2; statement3; >end Ada programmers would write this as: case foo is when 5 | 7 => statemen1; statement2; statement3; end case; Next strawman? -- Scott Schwartz schwartz@cs.psu.edu "the same idea is applied today in the use of slide rules." -- Don Knuth