From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Maintaining implementations of similar utility functions like json-fetch Date: Mon, 05 Feb 2018 14:12:58 +0100 Message-ID: <87shafd1gl.fsf@gnu.org> References: <87po5v1dy0.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]:44667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiga0-00009q-Et for guix-devel@gnu.org; Mon, 05 Feb 2018 08:13:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eigZx-0005Gi-6K for guix-devel@gnu.org; Mon, 05 Feb 2018 08:13:04 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:40272) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eigZw-0005GI-V3 for guix-devel@gnu.org; Mon, 05 Feb 2018 08:13:01 -0500 In-Reply-To: (Jelle Licht's message of "Wed, 31 Jan 2018 18:32:21 +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: Jelle Licht Cc: guix-devel 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? :-) Ludo=E2=80=99.