all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Shynur Xie <one.last.kiss@outlook.com>
To: 64537@debbugs.gnu.org
Subject: bug#64537: mix lists and vectors when using backquote
Date: Sun, 9 Jul 2023 05:40:46 +0000	[thread overview]
Message-ID: <PH0PR11MB74706AB88ADC104AFABD8C29D733A@PH0PR11MB7470.namprd11.prod.outlook.com> (raw)

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.




             reply	other threads:[~2023-07-09  5:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-09  5:40 Shynur Xie [this message]
2023-09-22  9:08 ` bug#64537: mix lists and vectors when using backquote 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PH0PR11MB74706AB88ADC104AFABD8C29D733A@PH0PR11MB7470.namprd11.prod.outlook.com \
    --to=one.last.kiss@outlook.com \
    --cc=64537@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.