home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / acorn / tech / 46 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.8 KB

  1. Path: sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!gpvos
  2. From: gpvos@cs.vu.nl (Gerben 'P' Vos)
  3. Newsgroups: comp.sys.acorn.tech
  4. Subject: Re: New Language/Compiler (ideas wanted)
  5. Keywords: Compiler/Language
  6. Message-ID: <15750@star.cs.vu.nl>
  7. Date: 14 Aug 92 09:33:02 GMT
  8. References: <1195@grun.is> <1992Aug13.130618.18871@odin.diku.dk> <BsyHIG.GMu@comp.vuw.ac.nz>
  9. Sender: news@cs.vu.nl
  10. Lines: 32
  11.  
  12. Gavin Flower writes:
  13.  
  14. >A number of years ago, someone suggested a "comfrom", to match a
  15. >"goto".  When it was first mentioned, it was as a joke.  However, the
  16. >more I thought about it, the more it appealed...
  17.  
  18. The "come from" was intended to be used * without * a corresponding goto,
  19. so it would actually be a construct which would encourage really horrible,
  20. disgusting, unstructured, <insert rude word here> core (oops, i meant code,
  21. but core is probably appropriate too :-) ).
  22.  
  23. It has been implemented in some languages as a debugging tool---not to be
  24. used in real code. Also, it has been implemented in INTERCAL, a joke
  25. language, which encourages programming worse than found in the Obfuscated
  26. C Programming Contest.
  27.  
  28. >The idea is that both ends of the goto are labeled.  This has several
  29. >advantages:-
  30.  
  31. >(1) At the target label, the "comefrom" clearly identifies the places
  32. >from which the current label can be reached, and just how many places.
  33.  
  34. >(2) Also it will help to discourage indiscriminant use of the
  35. >"dreaded goto", without preventing its use in "appropiate" contexts.
  36.  
  37. >(3) This would give the compiler more scope for picking up errors.
  38.  
  39. But the way you propose it, it sounds actually very nice.
  40.  
  41. . . . . . . . . . . . . . . . . . . . . . . . . . . . G e r b e n   V o s   <><
  42. Aconet: 8500/104!Gerben Vos  Internet: gpvos@cs.vu.nl
  43. This .signature is a Usenet Olympic Record holder. Copy it now!
  44.