all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#64537: mix lists and vectors when using backquote
@ 2023-07-09  5:40 Shynur Xie
  2023-09-22  9:08 ` Stefan Kangas
  2024-06-08 23:45 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 5+ messages in thread
From: Shynur Xie @ 2023-07-09  5:40 UTC (permalink / raw)
  To: 64537

The docstring of ‘backquote’ says “vectors work just like lists”.
Should we also clarify that mixing lists and vectors these 2 way:

    `(... ,@[...])  ; by contrast: `(,@[] 1)  => (1)
    `[,@'()]        ; by contrast: `[1 ,@'()] => [1]

will lead to unexpected behavior?  Or suggest not doing so?  Or let
‘backquote’ detect this and signal an error?

BTW, if [[https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64415]] is
actually not a bug, please consider document that behavior.  Thanks.




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

end of thread, other threads:[~2024-06-08 23:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-09  5:40 bug#64537: mix lists and vectors when using backquote Shynur Xie
2023-09-22  9:08 ` Stefan Kangas
2023-09-22 15:03   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-24  9:47     ` Stefan Kangas
2024-06-08 23:45 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

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.