home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / scheme / 2739 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.1 KB  |  26 lines

  1. Newsgroups: comp.lang.scheme
  2. Path: sparky!uunet!gatech!concert!rock!jazz!hayes
  3. From: hayes@jazz.concert.net (Brian Hayes - Sigma Xi)
  4. Subject: Re: What's the story with ATOM??
  5. Message-ID: <1992Dec15.144409.3160@rock.concert.net>
  6. Sender: news@rock.concert.net
  7. Organization: MCNC Center for Communications -- CONCERT Network
  8. Date: Tue, 15 Dec 1992 14:44:09 GMT
  9. Lines: 15
  10.  
  11.  
  12. matt@volga.Berkeley.EDU asks "What's the story with ATOM??"
  13.  
  14. >                              To me, (lambda (x) (not (pair? x))) makes
  15. > sense, but on the other hand, it's weird to me that a vector is an atom; I'd
  16. > rather think of a pair as a vector of length two than of a vector as an atom.
  17.  
  18. If I remember right, it was just such incongruities that led
  19. to the decision to supply the predicate pair? instead of the
  20. traditional atom?. If you want a type predicate that returns
  21. #t for anything but a pair or a vector, you are welcome to
  22. define it and even call it atom?, but don't expect the rest
  23. of the world to know what it means. By the way, what about
  24. strings--are they atomic or composite? Are even numbers atomic?
  25. (Rationals and complex numbers look rather composite to me.)
  26.