Re: [Chicken-users] Medea Egg: nested lists/pairs

2013-03-26 Thread Karsten Gebbert
On 03/26/2013 02:47 PM, Moritz Heidkamp wrote: Hi Karsten, Karsten Gebbert 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 evaluate

Re: [Chicken-users] Medea Egg: nested lists/pairs

2013-03-26 Thread Moritz Heidkamp
Hi Karsten, Karsten Gebbert 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) (fo

[Chicken-users] Medea Egg: nested lists/pairs

2013-03-26 Thread Karsten Gebbert
Hi, I'm using the medea egg, installed via chicken-install, and I'm encountering a problem unparsing lists that contain pairs with more list/pairs. To my understanding of the source code, write-json should just call itself on the cdr of the pair, but I get an error: #;2> #;2> (write-json '(