Related articles |
---|
Overloaded logic operators mike@mike-austin.com (Mike Austin) (2008-11-23) |
Re: Overloaded logic operators mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2008-11-24) |
Re: Overloaded logic operators torbenm@pc-003.diku.dk (2008-11-24) |
Re: Overloaded logic operators bc@freeuk.com (Bartc) (2008-11-24) |
Re: Overloaded logic operators arnold@skeeve.com (2008-11-25) |
Re: Overloaded logic operators mike@mike-austin.com (Mike Austin) (2008-11-25) |
Re: Overloaded logic operators mike@mike-austin.com (Mike Austin) (2008-11-25) |
Re: Overloaded logic operators mike@mike-austin.com (Mike Austin) (2008-11-25) |
Re: Overloaded logic operators lkrupp@pssw.com (Louis Krupp) (2008-11-25) |
Re: Overloaded logic operators mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2008-11-25) |
Re: Overloaded logic operators m.helvensteijn@gmail.com (2008-11-25) |
[7 later articles] |
From: | arnold@skeeve.com (Aharon Robbins) |
Newsgroups: | comp.compilers |
Date: | Tue, 25 Nov 2008 05:36:22 +0000 (UTC) |
Organization: | Pioneer Consulting, Ltd. |
References: | 08-11-110 08-11-114 |
Keywords: | design |
Posted-Date: | 25 Nov 2008 07:05:26 EST |
Originator: | arnold@skeeve.com (Aharon Robbins) |
The moderator wrote:
>[The A < B < C syntax has been part of Cobol for many decades. It seems
>to work fine there. -John]
It is also valid in Python, IIRC, which is a more "mainstream" language
these days.
The syntax makes a lot of sense as it parallels the way we all learned
mathematics in grade school and high school. It is probably the FORTRAN
heritage that continues to impose "and" and "or" upon us (short circuit
or otherwise).
Of course, I *like* short-circuit operators, but in cases where it
doesn't matter, the "and" can be elided without loss of clarity.
--
Aharon (Arnold) Robbins arnold AT skeeve DOT com
P.O. Box 354 Home Phone: +972 8 979-0381
Nof Ayalon Cell Phone: +972 50 729-7545
D.N. Shimshon 99785 ISRAEL
Return to the
comp.compilers page.
Search the
comp.compilers archives again.