jscl icon indicating copy to clipboard operation
jscl copied to clipboard

Missing support of `,.` in backquote

Open cireu opened this issue 1 month ago • 1 comments

In https://www.lispworks.com/documentation/HyperSpec/Body/02_df.htm

Anywhere ,@'' may be used, the syntax ,.'' may be used instead to indicate that it is permissible to operate destructively on the list structure produced by the form following the ``,.'' (in effect, to use nconc instead of append).

An example in SBCL.

CL-USER> `(a b c ,.(list 1 2 3))
(A B C 1 2 3)

In theory, it's ok to re-use the code of ,@ to implement ,. -- standard just allow implementation to use destructive splicing, not require.

cireu avatar Nov 21 '25 19:11 cireu

Let's not talk about compliance of read.lisp for now 🤫

kchanqvq avatar Nov 21 '25 20:11 kchanqvq