home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / rexx / 1405 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.3 KB

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