home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / c / 3216 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.1 KB  |  50 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!nntp!sja
  3. From: sja@snakemail.hut.fi (Sakari Jalovaara)
  4. Subject: Re: <iso646.h>
  5. In-Reply-To: jfw@ksr.com's message of 14 Dec 92 17:36:19 EST
  6. Message-ID: <SJA.92Dec16090615@lk-hp-17.hut.fi>
  7. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  8. Nntp-Posting-Host: lk-hp-17.hut.fi
  9. Organization: Helsinki University of Technology, Finland
  10. References: <19457@smoke.brl.mil> <Bz7tKM.KDF@grex.ann-arbor.mi.us> <20094@ksr.com>
  11. Date: 16 Dec 92 07:06:15 GMT
  12. Lines: 36
  13.  
  14.  
  15. Jeez, Doug, for a second there I actually believed you were seriously
  16. suggesting people should use `not' for `!'.  But are those digraphs
  17. really going to be suggested to be added to C?
  18.  
  19. jfw@ksr.com (John F. Woods):
  20. > the "difficult" characters don't need to have the same representations
  21. > between implementations (and may well not, in an environment where
  22. > national characters have gobbled up the ASCII values for the
  23. > "difficult" characters).
  24.  
  25. Does anyone, anywhere on the world know of a serious implementation of
  26. C that uses mostly ASCII but doesn't recognize the value 0x7b as left
  27. brace?  (Totally regardless of what that character looks like on a
  28. terminal - on mine, it looks like an 'a' with two dots; compilers have
  29. *no* problems with that.)
  30.  
  31. A language standard simply should not concern itself with what
  32. characters look like on various terminals.  The "national characters
  33. need trigraphs" argument is just plain WRONG.
  34.  
  35. > Of course, why it was necessary to do violence to the language in
  36. > order to avoid having an occasional tape accompanied by a
  37. > handwritten note and/or a quickie conversion utility has escaped
  38. > many people...
  39.  
  40. Exactly!  The C standard could even have required C systems to be able
  41. to process ASCII source code; whether that is implemented by the native
  42. character set, as a compiler option, or as a separate program, is up to
  43. the implementation.  As is the exact key sequence required to enter a
  44. "left brace" token (even if it is ??( or $$( and displays as three
  45. characters on some terminals!)
  46.  
  47. Trigraphs are BAD and UNNECESSARY.
  48. Digraphs are WORSE and UNNECESSARY.
  49.                                     ++sja
  50.