|
From: | Karsten Gebbert |
Subject: | Re: [Chicken-users] Medea Egg: nested lists/pairs |
Date: | Tue, 26 Mar 2013 20:44:21 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
On 03/26/2013 02:47 PM, Moritz Heidkamp wrote:
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
<blush>I *could* have gotten this</blush> Thanks Moritz!
[Prev in Thread] | Current Thread | [Next in Thread] |