home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / scheme / 2038 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.lang.scheme
  2. Path: sparky!uunet!gatech!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  3. From: jeff@aiai.edinburgh.ac.UK (Jeff Dalton)
  4. Subject: Re: R^4RS Authors Comments on Dylan
  5. Message-ID: <5248.9208171141@subnode.aiai.ed.ac.uk>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Organization: The Internet
  8. Date: Mon, 17 Aug 1992 11:41:07 GMT
  9. Lines: 37
  10.  
  11. > Date: 14 Aug 1992 13:59:59 GMT
  12. > From: Brian Harvey <bh@anarres.cs.berkeley.edu>
  13.  
  14. > As a teacher, I incline toward object-dispatch.  I know that the
  15. > generic function idea makes it easier to talk about an operation
  16. > that applies to more than one object (although not easier enough,
  17. > because of the combinatorial explosion of the number of possible
  18. > types of all the operands), but I think that for a learner the
  19. > whole idea of objects (smart data) is lost. 
  20.  
  21. You can still think in terms of "smart data" when the generics
  22. are specialized on only one parameter, and there are Schemes
  23. (such as T) in which function call syntax is used even though
  24. it's the objects that select the methods.
  25.  
  26. If you're not going to get into implementation, it's not necessary to
  27. say the function does the dispatch, and even in class-based object
  28. systems it's not just objects interpreting messages.
  29.  
  30. So I don't think the use of generic functions has to be a
  31. tremendous problem for education in practice.  At least I
  32. hope not.
  33.  
  34. On the other hand, I don't see why Scheme should do what Dylan
  35. does just because Dylan does it.  If the same idea wasn't right
  36. when it came from Common Lisp or EuLisp or whatever, why would
  37. it suddenly be right now?
  38.  
  39. >   But I want to try to get educational concerns
  40. > into the picture, so that the eventual decision isn't made entirely
  41. > in terms of what's easy to implement efficiently and so on.
  42.  
  43. if anything, a CLOS-like object system as in Dylan is probably harder
  44. to implement than most of the alternatives we're used to in Scheme.
  45.  
  46. -- jd
  47.  
  48.