From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: Maintaining implementations of similar utility functions like json-fetch Date: Mon, 05 Feb 2018 22:51:08 +0800 Message-ID: <87wozrlcbn.fsf@gmail.com> References: <87po5v1dy0.fsf@gnu.org> <87shafd1gl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eii71-0000w2-H2 for guix-devel@gnu.org; Mon, 05 Feb 2018 09:51:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eii6y-0003nb-AY for guix-devel@gnu.org; Mon, 05 Feb 2018 09:51:15 -0500 In-Reply-To: <87shafd1gl.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 05 Feb 2018 14:12:58 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hey, > > Jelle Licht skribis: > >> I basically added the robust features of `json-fetch*' to the exported >> `json-fetch' >> instead, and all existing functionality seems to work out as far as I can >> see. > > So are you saying that we can get rid of =E2=80=98json-fetch*=E2=80=99? > >> I did notice that I now produce hash-tables by default, and some of the >> existing usages of `json-fetch*' expect an alist instead. What would be a >> guile- >> appropriate way of dealing with this? I currently have multiple >> `(hash-table->alist (json-fetch <...>))' littered in my patch which seems >> suboptimal, >> but always converting the parsed json into an alist seems like it might >> also not be >> what we want. > > Why insist on having an alist? Perhaps you can just stick to hash > tables? :-) > We also have vhashes... > Ludo=E2=80=99.