What I'd really like to see in an if-statement...

Steve Lamont spl at mcnc.org
Sun Aug 6 08:01:59 AEST 1989


In article <1300 at atanasoff.cs.iastate.edu> hascall at atanasoff.cs.iastate.edu.UUCP (John Hascall) writes:
@In article <5024 at alvin.mcnc.org> spl at mcnc.org.UUCP (Steve Lamont) writes:
@}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.

That really doesn't address the question:  is the mathematical inequality test
shown in my example a *bad* idea?

-- 
							spl
Steve Lamont, sciViGuy			EMail:	spl at ncsc.org
North Carolina Supercomputing Center	Phone: (919) 248-1120
Box 12732/RTP, NC 27709



More information about the Comp.lang.c mailing list