* comma-dot ?
@ 2003-05-29 20:04 Stefan Monnier
2003-05-29 20:33 ` Luc Teirlinck
2003-05-29 20:49 ` Kevin Rodgers
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Monnier @ 2003-05-29 20:04 UTC (permalink / raw)
While looking at the lread.c code recently I bumped into
the comma-dot read syntax: the reader not only recognizes
, and ,@ but also ,. as a special thingy.
Does anybody know what this is/was for ?
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: comma-dot ?
2003-05-29 20:04 comma-dot ? Stefan Monnier
@ 2003-05-29 20:33 ` Luc Teirlinck
2003-05-29 20:49 ` Kevin Rodgers
1 sibling, 0 replies; 3+ messages in thread
From: Luc Teirlinck @ 2003-05-29 20:33 UTC (permalink / raw)
Cc: emacs-devel
Stefan Monnier wrote:
While looking at the lread.c code recently I bumped into
the comma-dot read syntax: the reader not only recognizes
, and ,@ but also ,. as a special thingy.
Does anybody know what this is/was for ?
In Common Lisp, it is equivalent with ,@ but destructive. I guess it must
mean the same in Elisp.
Sincerely,
Luc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: comma-dot ?
2003-05-29 20:04 comma-dot ? Stefan Monnier
2003-05-29 20:33 ` Luc Teirlinck
@ 2003-05-29 20:49 ` Kevin Rodgers
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2003-05-29 20:49 UTC (permalink / raw)
Stefan Monnier wrote:
> While looking at the lread.c code recently I bumped into
> the comma-dot read syntax: the reader not only recognizes
> , and ,@ but also ,. as a special thingy.
>
> Does anybody know what this is/was for ?
Probably compatibility with Common Lisp:
Anywhere ",@" may be used, ",." may be used instead to indicate
that it is permissible to destroy the list produced by the form
following the ",."; this may permit more efficient code, using
nconc instead of append, for example.
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-29 20:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-29 20:04 comma-dot ? Stefan Monnier
2003-05-29 20:33 ` Luc Teirlinck
2003-05-29 20:49 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.