home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!ames!agate!doc.ic.ac.uk!ppch
- From: ppch@doc.ic.ac.uk (P P C Herring)
- Newsgroups: comp.lang.rexx
- Subject: Spelt logical operators
- Followup-To: comp.lang.rexx
- Date: 11 Dec 1992 19:57:02 -0000
- Organization: Department of Computing, Imperial College, University of London, UK.
- Lines: 19
- Distribution: world
- Message-ID: <1garqeINNdt4@oak9.doc.ic.ac.uk>
- NNTP-Posting-Host: oak9.doc.ic.ac.uk
-
-
- Has anyone ever suggested that Rexx implement the logical operators in words as
- well as in symbols?
-
- I mean: if not A or (B and C) then ...
- as an alternative to: if \A | (B & C) then ...
- which suffers from using characters that keyboard manufacturers and operating
- systems treat as fair game for their own purposes, and also from not being very
- close to any of the notations used in logic (except for '&').
-
- Of course there is the problem of reserved words, but surely this is a case for
- saying that code using 'and' to mean something other than '&' is just bad style.
-
- It would also be possible to implement xor and nand, and also the material
- conditional if a suitable abbreviation can be found (the colloquial term in logic
- is 'hook' because the symbol - U on its side pointing to the right - looks a bit
- like one; this would suit me but is not really intuitive).
-
- /* Patrick Herring, Imperial College, University of London */
-