home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / compiler / 1551 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  2.0 KB

  1. Xref: sparky comp.compilers:1551 comp.human-factors:2216
  2. Path: sparky!uunet!gatech!rutgers!faatcrl!iecc!compilers-sender
  3. From: rob@guinness.eng.ohio-state.edu (Rob Carriere)
  4. Newsgroups: comp.compilers,comp.human-factors
  5. Subject: Re: language design tradeoffs
  6. Keywords: design, parse, comment
  7. Message-ID: <92-09-070@comp.compilers>
  8. Date: 14 Sep 92 04:43:27 GMT
  9. References: <92-09-048@comp.compilers> <92-09-068@comp.compilers>
  10. Sender: compilers-sender@iecc.cambridge.ma.us
  11. Reply-To: rob@guinness.eng.ohio-state.edu (Rob Carriere)
  12. Organization: The Ohio State University Dept of Electrical Engineering
  13. Lines: 28
  14. Approved: compilers@iecc.cambridge.ma.us
  15.  
  16. weberwu@inf.fu-berlin.de (Debora
  17. Weber-Wulff) writes: 
  18. >raveling@Unify.com (Paul Raveling) writes:
  19. >[sick macro trap in C deleted]
  20. >Sigh. The problem is not the ';', it's the syntax of the if statement. If
  21. >';' were nothing more than a statement separator and the empty statement
  22. >were allowed, we could write ';;;;;;;;;;;;;;;;' if we felt like it. Then
  23. >'if' must be terminated with a nice 'fi'and the problem goes away. Another
  24. >reason why explicit terminators like od and fi are a good idea!
  25.  
  26. True.  It is, however, possible to achieve the same effect in languages
  27. that don't require if/do terminators by religously making the statement
  28. inside the if/do a block; i.e. always use {} or BEGIN/END or whatever it's
  29. called in the language of the week.
  30.  
  31. In fact, I would argue that a language that requires coding that way has
  32. superior syntax to a do/od language, because of the well-known problem
  33. with the spelling of the terminators.  Things like TNEMMOC, CNUF and NIGEB
  34. start looking OD rather quickly.
  35.  
  36. SR
  37. ---
  38. [Algol68 came close to TNEMMOC, but also did an amazing job of letting you
  39. use parentheses, vertical bars, and the like, as synonyms for if, else, fi,
  40. begin, end, and other common delimiters. -John]
  41. -- 
  42. Send compilers articles to compilers@iecc.cambridge.ma.us or
  43. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  44.