home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.lisp:2903 comp.lang.scheme:2607
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.lang.lisp,comp.lang.scheme
- Subject: Re: Quote syntax
- Date: 18 Nov 1992 09:04:51 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 23
- Message-ID: <1ed0vjINNeq5@early-bird.think.com>
- References: <Bxvq8r.E38@beach.csulb.edu>
- NNTP-Posting-Host: gandalf.think.com
-
- Brian Harvey gave a good explanation of the justification for the Lisp
- quoting style. I just thought I'd mention that MDL, a derivative of Lisp,
- did do something like what Michael Werts suggested. In MDL there was a
- separate data type called "form", used for invoking functions, macros, and
- special forms. Its syntax was <operator args>. List notation, on the
- other hand, was (elements), and were literals. The list accessor functions
- also accepted forms, and there were conversion functions for converting
- lists to forms and vice versa.
-
- Symbols were also self evaluating (to answer the question at the end of
- Brian's posting). There were special forms to access the local and global
- value of a symbol, and reader macros ("." and ",", respectively) to
- simplify the use of them.
-
- Thus, the Lisp form (list a *a* 'b '(1 2 3)) would be <list .a ,*a* b (1 2
- 3)> in MDL.
-
- This is all from ancient memory, so I may have some of the details wrong.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-