nlfiedler / bakeneko

Scheme R7RS interpreter in Go
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Test quasiquotation on lists/vectors that are self-referential #53

Open nlfiedler opened 10 years ago

nlfiedler commented 10 years ago

For instance: `#1=(a ,(+ 1 2) . #1#) which will likely result in an infinite loop in the code for expanding the quasiquote. If this indeed fails, may make sense to use the chibi-scheme approach of limiting the depth of recursion to prevent the infinite loop. There may be an alternate approach if the straightforward algorithm fails.