From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Implement SRFI-111 Boxes Date: Tue, 25 Mar 2014 18:01:37 +0100 Message-ID: <87vbv2i55a.fsf@gnu.org> References: <87a9elkjmo.fsf@netris.org> <87txctzpjy.fsf@taylan.uni.cx> <874n4tlka7.fsf@gnu.org> <87k3bjtevu.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1395771120 13359 80.91.229.3 (25 Mar 2014 18:12:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2014 18:12:00 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Mar 25 19:12:09 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WSVpY-0006Rj-Va for guile-devel@m.gmane.org; Tue, 25 Mar 2014 19:12:09 +0100 Original-Received: from localhost ([::1]:43410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSVpY-00013N-Gl for guile-devel@m.gmane.org; Tue, 25 Mar 2014 14:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSVpR-0000wT-7b for guile-devel@gnu.org; Tue, 25 Mar 2014 14:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSVZr-00088R-Kw for guile-devel@gnu.org; Tue, 25 Mar 2014 13:56:00 -0400 Original-Received: from hera.aquilenet.fr ([2a01:474::1]:47549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSUjM-000470-4G for guile-devel@gnu.org; Tue, 25 Mar 2014 13:01:40 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1DBA11C92; Tue, 25 Mar 2014 18:01:38 +0100 (CET) Original-Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u3GNdIGFZTAR; Tue, 25 Mar 2014 18:01:38 +0100 (CET) Original-Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DD2C911D9; Tue, 25 Mar 2014 18:01:37 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Germinal an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87k3bjtevu.fsf@pobox.com> (Andy Wingo's message of "Mon, 24 Mar 2014 23:23:33 +0100") User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:474::1 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17009 Archived-At: Andy Wingo skribis: > On Fri 24 Jan 2014 11:57, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") skrib= is: >> >>> Has it been considered to coalesce the box type with Guile's "variable" >>> type? I can see two concrete differences: >>> >>> * External representation (*not* specified by SRFI-111) >>> >>> * Variables can be "unbound" (empty), boxes can't >>> >>> So we could get away with making the box API consist of aliases to a >>> subset of the variable API and still conform to SRFI-111. >> >> Even though both types are box-like, they represent conceptually >> different things, so I think it=E2=80=99s better to keep them disjoint. > > Why do you think so? To me, Guile's variables are boxes, and the > ability to make a variable unbound is a Guile extension. Tu put it differently, I don=E2=80=99t think it would buy us anything to ma= ke variable SRFI-111 boxes. However, it could perhaps break code, and would not allow for a separate type printer, which is useful. Ludo=E2=80=99.