Skip to content

Missing support of ,. in backquote #518

@cireu

Description

@cireu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions