home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / forth / 2958 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!male.EBay.Sun.COM!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
  2. From: exuhag@exu.ericsson.se (James Hague)
  3. Newsgroups: comp.lang.forth
  4. Subject: Re: Free Forth
  5. Message-ID: <1992Aug14.132732.10393@exu.ericsson.se>
  6. Date: 14 Aug 92 13:27:32 GMT
  7. References: <1992Aug14.025506.659@csi.uottawa.ca>
  8. Sender: news@exu.ericsson.se
  9. Reply-To: exuhag@exu.ericsson.se
  10. Organization: Ericsson Network Systems, Richardson, TX
  11. Lines: 26
  12. Nntp-Posting-Host: s09a05.exu.ericsson.se
  13.  
  14. Christopher Browne writes:
  15. >
  16. >Once in a while, there's a neat article in Communications of the ACM.
  17. >This month, there's one that rags on "Object Oriented Programming."  It
  18. >criticizes what IS one of the weaknesses; specifically, classes and
  19. >inheritance. 
  20.  
  21. I've always agreed with more modular languages which let you break
  22. up your namespace into managable pieces (Modula-2, extended Pascal),
  23. and I think this is one of my real complaints about Forth.  Going the
  24. full "OOP" route, though, can replace this problem with one of
  25. inheritance tree managament.  As Christopher Browne mentioned, you
  26. are forced into classifying everything in often unnatural ways.  And
  27. having to rework an inheritance tree in mid-project can be a diaster.
  28.  
  29. To play devil's advocate, though, the simple view of Forth actually
  30. works quite well in most cases, and separate vocabularies help things
  31. a bit.  In any OOP or modular language you still have to remember
  32. functions names and such.  You can make Forth seem more organized by 
  33. using standard naming conventions or by manually grouping names together
  34. by printing up a "namespace map" on paper if you really want some
  35. asthetics.
  36.  
  37. --
  38. James Hague   
  39. exuhag@exu.ericsson.se
  40.