unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Difference between cons and dot
@ 2024-04-20 12:20 Heime
  2024-04-20 13:35 ` Arsen Arsenović
  2024-04-20 16:08 ` tpeplt
  0 siblings, 2 replies; 3+ messages in thread
From: Heime @ 2024-04-20 12:20 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

Am adding an elemnt to an alist using either the cons or dot method.
Have noticed that with cons I do not need to call list 

Thusly 

(push (cons kfrz lnum) tema-lugar)

rather than

(push '(cons kfrz lnum) tema-lugar)

But with the dot method I have to use 

(push '(kfrz . lnum) tema-lugar)

and not 

(push (kfrz . lnum) tema-lugar)

What is the reason for this difference ?




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-20 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-20 12:20 Difference between cons and dot Heime
2024-04-20 13:35 ` Arsen Arsenović
2024-04-20 16:08 ` tpeplt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).