home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / compiler / 1923 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.2 KB  |  53 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!wupost!emory!sol.ctr.columbia.edu!eff!world!iecc!compilers-sender
  3. From: clyde@hitech.com.au (Clyde Smith-Stubbs)
  4. Subject: Re: Is this a new idea?
  5. Reply-To: clyde@hitech.com.au (Clyde Smith-Stubbs)
  6. Organization: HI-TECH Software, Brisbane, QLD, Australia.
  7. Date: Wed, 18 Nov 1992 23:48:44 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <92-11-114@comp.compilers>
  10. Keywords: C, design
  11. References: <92-10-113@comp.compilers> <92-11-088@comp.compilers>
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 38
  14.  
  15. I seem to have missed the first response:
  16.  
  17. clyde@hitech.com.au (Clyde Smith-Stubbs) writes:
  18. >   ...you can't parse code that contains references to such things as
  19. >   typedefs that occur earlier in the code, if the typedef is missing
  20. >   or in the middle of being edited....
  21.  
  22. macrakis@osf.org (Stavros Macrakis) writes:
  23. >   This is a C-specific problem: a bug in the design of C's syntax.  Most
  24. >   other languages don't commit such foolishness, except of course those
  25. >   with extensible syntax.
  26.  
  27. True.
  28.  
  29. drw@euclid.mit.edu (Dale R. Worley) writes:
  30. >Almost any language with an extensible set of operators is going to
  31. >run into this problem.
  32.  
  33. I thought that's what he said? However, the solution is now clear. We
  34. should all immediately abandon C and any languages with extensible syntax,
  35. and perform an appropriate penance for having used such ideologically
  36. unsound tools. A month of COBOL programming sounds appropriate.
  37.  
  38. And of course by switching to a non-extensible language we will
  39. immediately get the benefit of instant compilation. I'm talking about
  40. BASIC of course.
  41.  
  42. More seriously, the typedef problem in C does cause parsing difficulties,
  43. but C is here to stay. Rather than pointing fingers at its design, it
  44. would be better to look for ways of solving the problem at hand (which was
  45. speeding up re-compilations).
  46. --
  47.  Clyde Smith-Stubbs       | HI-TECH Software,       | Voice: +61 7 300 5011
  48.  clyde@hitech.com.au      | P.O. Box 103, Alderley, | Fax:   +61 7 300 5246
  49.  ...!nwnexus!hitech!clyde | QLD, 4051, AUSTRALIA.   | BBS:   +61 7 300 5235
  50. -- 
  51. Send compilers articles to compilers@iecc.cambridge.ma.us or
  52. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  53.