Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!atanasoff!hascall From: hascall@atanasoff.cs.iastate.edu (John Hascall) Newsgroups: comp.lang.c Subject: Re: What I'd really like to see in an if-statement... Message-ID: <1300@atanasoff.cs.iastate.edu> Date: 5 Aug 89 19:00:15 GMT References: <5024@alvin.mcnc.org> Reply-To: hascall@atanasoff.cs.iastate.edu.UUCP (John Hascall) Organization: Iowa State Univ. Computation Center Lines: 19 In article <5024@alvin.mcnc.org> spl@mcnc.org.UUCP (Steve Lamont) writes: }Since I do a lot of programming that involves mathematical expressions of one }sort of another I often find myself wishing for an if construct that looks }like } if ( foo < bar < baz ) ... }Is there any reason why such a construction is not practical? If not, why has }no language (that I am aware of or can program in) implemented such a }construction? Good idea or bad idea? It's in COBOL (along with everything else). To answer your other question, COBOL is a bad idea. John Hascall ISU COmp Center