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

  1. Path: sparky!uunet!sun-barr!ames!agate!anarres.CS.Berkeley.EDU!bh
  2. From: bh@anarres.CS.Berkeley.EDU (Brian Harvey)
  3. Newsgroups: comp.lang.scheme
  4. Subject: Re: R^4RS Authors Comments on Dylan
  5. Date: 14 Aug 1992 13:59:59 GMT
  6. Organization: University of California at Berkeley
  7. Lines: 28
  8. Message-ID: <16ge8vINNe1f@agate.berkeley.edu>
  9. References: <9208132109.AA16509@peanut.crl.dec.com>
  10. NNTP-Posting-Host: anarres.cs.berkeley.edu
  11.  
  12. jmiller@crl.DEC.COM writes:
  13. >o Dylan's use of generic functions, derived directly from CLOS, fit
  14. >  into the language in a particularly elegant manner.  If the Scheme
  15. >  community does decide to adopt a modest object system, we should
  16. >  study Dylan's subset of CLOS to make an informed choice between this
  17. >  approach and the more traditional object-dispatch mechanism.
  18.  
  19. As a teacher, I incline toward object-dispatch.  I know that the
  20. generic function idea makes it easier to talk about an operation
  21. that applies to more than one object (although not easier enough,
  22. because of the combinatorial explosion of the number of possible
  23. types of all the operands), but I think that for a learner the
  24. whole idea of objects (smart data) is lost.  It's only in a very
  25. attenuated sense that Dylan has objects at all, compared to how
  26. I've learned to think about objects.  It just has data with
  27. manifest type.
  28.  
  29. I know that the metaphor of asking an object to do something
  30. doesn't make any difference in terms of the ability of the
  31. language to get work done.  But I think it does make a difference
  32. for the person learning the language; it gives rise to a very
  33. different mental model.
  34.  
  35. I can see arguments on the other side, and maybe it's premature to
  36. argue when there isn't even agreement on putting any kind of object
  37. system in Scheme.  But I want to try to get educational concerns
  38. into the picture, so that the eventual decision isn't made entirely
  39. in terms of what's easy to implement efficiently and so on.
  40.