GNU bug report logs - #64537
mix lists and vectors when using backquote

Previous Next

Package: emacs;

Reported by: Shynur Xie <one.last.kiss <at> outlook.com>

Date: Sun, 9 Jul 2023 05:46:01 UTC

Severity: normal

Full log


Message #8 received at 64537 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Shynur Xie <one.last.kiss <at> outlook.com>
Cc: 64537 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#64537: mix lists and vectors when using backquote
Date: Fri, 22 Sep 2023 02:08:23 -0700
Shynur Xie <one.last.kiss <at> outlook.com> writes:

> 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?

Copying in Stefan Monnier.




This bug report was last modified 1 year and 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.