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