What I'd really like to see in an if-statement...
Anders Thulin
ath at helios.prosys.se
Sun Aug 6 16:16:18 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:
-
-} 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.
It's also in BCPL (with the semantics of foo < bar && bar < baz).
BCPL isn't.
--
Anders Thulin, Programsystem AB, Teknikringen 2A, S-583 30 Linkoping, Sweden
ath at prosys.se {uunet,mcvax}!sunic!prosys!ath
More information about the Comp.lang.c
mailing list