Skip to content

QUASIQUOTE can't handle circular lists #60

@Bike

Description

@Bike

Macroexpansion of (quasiquote #1=(#1#)) dies. This is because expand immediately calls itself on the car and cdr of its argument if given a cons.

I suppose it's debatable whether quasiquote should be able to handle this, but we ran into it due to some code in the Alexandria tests: https://github.com/keithj/alexandria/blob/0426bd2fae19ae0492d44407f17ac1005196c9c3/tests.lisp#L677 (i mean, maybe. The path from that code to the crash is not totally clear yet, and there's no obvious backquoting there.)

Clasp issue: clasp-developers/clasp#885

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions