all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.