Path: csiph.com!news.nrbbs.org!border-1.nntp.ord.giganews.com!border-4.nntp.ord.giganews.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 23 Aug 2026 19:47:29 +0000 From: steve g Newsgroups: comp.lang.lisp Subject: Re: Macros (was Re: Resources to learn common lisp?) References: <110a9pp$ckmk$6@dont-email.me> <112o4aa$cpek$2@dont-email.me> <87jyqdtumj.fsf@gmail.com> <87bjbn2nhs.fsf@safunu.org> <877bm4zgsp.fsf@safunu.org> <1159f4c$26g2n$1@dont-email.me> <87se4mquld.fsf@nightsong.com> <115i4sf$uekh$1@dont-email.me> <874igxov3y.fsf@nightsong.com> <115n30i$2hot4$1@dont-email.me> <116aor8$1ubeu$1@paganini.bofh.team> <116atlm$olsn$2@dont-email.me> <116c3ef$254du$1@paganini.bofh.team> Date: Sun, 23 Aug 2026 15:47:29 -0400 Message-ID: <877blgty9a.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:klCwu0gCEo6EqjDcrblgevPOM0w= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 35 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-L7dLpeNxvkxDheuh7zIzn6kNPC8h5TrueVMslSJgrUDTQyBg8cIT15GYono7wvE5cBi7KSr8ESD9iYi!dL63fl3WsLR6xLLQHluFbIPA7EHAJ01dRiBVAX4m+vpmcts= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: csiph.com comp.lang.lisp:61542 antispam@fricas.org (Waldek Hebisch) writes: > Lawrence D’Oliveiro wrote: >> >>> 3) I would like to so symbolic computation with arbitrary symbols. >>> For my purpose a symbol is always different from a list. But >>> polibiuro decided that "NIL" is identical to the empty list. I would >>> like "NIL" to be a constant symbol which when evaluated gives empty >>> list. >> >> You want more than one empty-list object? I think that is >> traditionally treated as a “singleton” (not just in Lisp), which means >> the answer is “no”. > > No, a single empty list object. I just want symbol NIL to be > a real symbol distingushable from empty list. Consider I usually use deconstant or define symbol macro. (deconst +eof+ '+eof+) ; SLIME 2.27 CL-USER> (defconstant +eof+ '+eof+) CL-USER> +eof+ +EOF+ CL-USER> (defconstant +eol+ '(nil . nil)) +EOL+ CL-USER> +eol+ (NIL) CL-USER>