chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Why does the JSON egg map JSON structs to Scheme vec


From: Christian Kellermann
Subject: Re: [Chicken-users] Why does the JSON egg map JSON structs to Scheme vectors instead of alists?
Date: Sun, 27 Nov 2011 14:21:08 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

* Vok Vojwo <address@hidden> [111127 14:16]:
> (assoc* (json->alist json) "feed" "title" "$t")
> ;; => "Official Google External Developer Events"
> 
> Is there any reason why the JSON egg creates vectors of pairs?
> 
> If not I would suggest to fix it to make it more schemish.

I agree with you and I can only guess the original author's intentions.
My guess is that it makes it possible to write back to json, since
alists are already used for representing a different datatype.
Surely the choice could have been made in a more convenient way...

Kind regards,

Christian 

-- 
Who can (make) the muddy water (clear)? Let it be still, and it will
gradually become clear. Who can secure the condition of rest? Let
movement go on, and the condition of rest will gradually arise.
 -- Lao Tse. 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]