[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Medea Egg: nested lists/pairs
From: |
Moritz Heidkamp |
Subject: |
Re: [Chicken-users] Medea Egg: nested lists/pairs |
Date: |
Tue, 26 Mar 2013 14:47:56 +0100 |
Hi Karsten,
Karsten Gebbert <address@hidden> writes:
> #;2> (write-json '((one . 1) (two . '((three . 3) (four . 4)))))
the problem here is the inner quote. Your expression is read as:
(quote ((one . 1) (two . (quote ((three . 3) (four . 4))))))
Which evaluates to
((one . 1) (two . (quote ((three . 3) (four . 4)))))
As you can see, that is not what you intended. The inner quote gets
quoted, too. So just leave it off and it should work as expected!
Moritz