From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: Including sjson (formerly (ice-9 json)) and fash.scm in guile proper? Date: Fri, 12 May 2017 15:15:13 -0400 Message-ID: <87lgq1hoou.fsf@netris.org> References: <87pofj0wia.fsf@dustycloud.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494616540 22147 195.159.176.226 (12 May 2017 19:15:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 May 2017 19:15:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Guile Devel To: Christopher Allan Webber Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 12 21:15:35 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9G2J-0005b6-3L for guile-devel@m.gmane.org; Fri, 12 May 2017 21:15:35 +0200 Original-Received: from localhost ([::1]:54998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9G2N-0001Dw-2W for guile-devel@m.gmane.org; Fri, 12 May 2017 15:15:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9G2D-0001Dd-9s for guile-devel@gnu.org; Fri, 12 May 2017 15:15:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9G2A-0003x7-2g for guile-devel@gnu.org; Fri, 12 May 2017 15:15:29 -0400 Original-Received: from world.peace.net ([50.252.239.5]:38974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9G29-0003vy-Ud for guile-devel@gnu.org; Fri, 12 May 2017 15:15:26 -0400 Original-Received: from pool-72-93-33-75.bstnma.east.verizon.net ([72.93.33.75] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d9Ftg-0002vG-QX; Fri, 12 May 2017 15:06:40 -0400 In-Reply-To: <87pofj0wia.fsf@dustycloud.org> (Christopher Allan Webber's message of "Mon, 08 May 2017 18:17:01 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 50.252.239.5 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19138 Archived-At: Hi Chris, Christopher Allan Webber writes: > So a while ago, David Thompson submitted (ice-9 json) to Guile proper. > A few changes were requested, so it hadn't made it in. In the meanwhile > I began using it for a number of projects. I also added some > modifications and extensions: #nil became 'null for the representation > of null values, Most of the modifications you've made are good, but I'm very uncomfortable with the use of #nil in this API. #nil is a terrible hack which may not even be adequate for its intended use case. Its existence in any data structure is likely to cause misbehavior in other Scheme code that is exposed to it, because it violates a longstanding fact in Scheme that there is only one value that is treated as "false". It would also make it difficult or impossible to port this library, and thus anything that depends on this library, to other Scheme systems. We should not promote its use by incorporating it into new APIs. What do you think? Otherwise, I'm generally in favor of incorporating this library into Guile, after we make sure that it is robust against malicious inputs. Regards, Mark