Taylan Kammer <taylan.kammer@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 21915) by debbugs.gnu.org; 14 May 2021 21:31:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 14 17:31:42 2021 Received: from localhost ([127.0.0.1]:47211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lhfPK-0004Db-Fv for submit <at> debbugs.gnu.org; Fri, 14 May 2021 17:31:42 -0400 Received: from mail-ej1-f52.google.com ([209.85.218.52]:40941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <taylan.kammer@HIDDEN>) id 1lhfPG-0004DL-MD for 21915 <at> debbugs.gnu.org; Fri, 14 May 2021 17:31:41 -0400 Received: by mail-ej1-f52.google.com with SMTP id n2so640657ejy.7 for <21915 <at> debbugs.gnu.org>; Fri, 14 May 2021 14:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=zjvsMf+KxNDyPqi4THyFa1WH+JoA+/Bx61fgXWakZBE=; b=MIAxqPyUuK3dhN/jv3oYIF0XeCvZw3e9ayWXywooIAudQa88alNG4u9SCKIDl/O4oM KhJZ/Yv4gmnVK2oG7YMqyY99WEIL5iw1ntkqHZgHmN6aZ9EQuf+W9ASqgWkSIEtIr1Ba nY8n6zVV7hJmUnD4Sqp3b2nH4GZQ7Hq1CV2ehqbE0WuEJ4XUzRPQcmSI+2WwT701G3xO H2adlKeRmFmYaWVMtDXU+OuZMKlw45MaZKBi7ibrH7Qf3WuWpaoOV5teRVPKdJRuY9Rp CJuuQyH94pk8MNfUVOASHT6tIknph31XZd4/So/AsmSRaAK7ztw5XIYCGMwB1N8aPHqD sa7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=zjvsMf+KxNDyPqi4THyFa1WH+JoA+/Bx61fgXWakZBE=; b=nIG93RtxmipCt5AzAF5G9sPpIzvEC6pH9qNB76BZPKzrVJHvWN+t0vn+d/fEjnLjEG ZeO+ZCUNPzW5mYhTk4ZypN6xJtB1zutXhJe6RnxE0EFd3ed1Y5EW5pCGqjdtM5uM44Zw U+VcljZyEDHWvn+L2EC92abJ+hw6wymlyOs2/5Fl907B/lvOohnE/L5FTKfX6WBKNMYb KlZ4Us1LrlNJL1QqBs9F9ksRHq3i4KKP5yy1WvPoS6kZbsQVpBq/Wo0T8EV8D4p7qwt6 0UnlhXZC8UAiCqb/yu/MflFJQ9LeGh7B9gNoN+Br//yViteyXRoIZ3BnHUJvsXUrDI85 GMcQ== X-Gm-Message-State: AOAM530/Fy6i0jv50GRa4O/Z52reAuYIrm0+uv/KbdnDPAPPZoSIMJ/w 69zxGf0Sr62/6cGBS458O7d9U1nTWjksRw== X-Google-Smtp-Source: ABdhPJzKo+LtWtCRc2F/tWzL0jXiZICg58ieQaf8CNSAEs0UAR3lgpVBpz+jcg8Cg9QLTZtqA6+vPA== X-Received: by 2002:a17:907:2646:: with SMTP id ar6mr18758808ejc.293.1621027892700; Fri, 14 May 2021 14:31:32 -0700 (PDT) Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id d15sm5351470edu.86.2021.05.14.14.31.31 for <21915 <at> debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 May 2021 14:31:31 -0700 (PDT) Subject: bug#21915: write inconsistent about #nil From: Taylan Kammer <taylan.kammer@HIDDEN> To: 21915 <at> debbugs.gnu.org References: <20151114014656.GT13455@HIDDEN> <b69985c6-3bfa-c853-023f-f7ac60236bca@HIDDEN> Message-ID: <c9bc51f0-041e-1d3e-7703-ed90f97b99ce@HIDDEN> Date: Fri, 14 May 2021 23:31:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <b69985c6-3bfa-c853-023f-f7ac60236bca@HIDDEN> Content-Type: multipart/mixed; boundary="------------F34F286CBE6458ADB584D658" Content-Language: en-US X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21915 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------F34F286CBE6458ADB584D658 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 14.05.2021 15:34, Taylan Kammer wrote: > > It might also be good, in addition, to make the Scheme writer > write (foo . #nil) as (foo . #nil). The positive is that it > would make bugs in Elisp compatibility easier to see by not > masking the fact that one has #nil instead of () at the end > of a list. The only negative I can think of is that it would > be mildly annoying to see (foo bar . #nil) where you expected > to see (foo bar), but I don't think that's ever really harmful. > FWIW here's a tiny patch that realizes this change. - Taylan --------------F34F286CBE6458ADB584D658 Content-Type: text/plain; charset=UTF-8; name="0001-Don-t-write-foo-.-nil-as-foo.patch" Content-Transfer-Encoding: base64 Content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B0bHIsIFNDTSBwb3J0LCBzY21fcHJpbnRfc3RhdGUgKnBzdGF0ZSkKICAgICAg IC8qIENIRUNLX0lOVFM7ICovCiAgICAgICBzY21faXByaW4xIChTQ01fQ0FSIChleHApLCBw b3J0LCBwc3RhdGUpOwogICAgIH0KLSAgaWYgKCFTQ01fTlVMTF9PUl9OSUxfUCAoZXhwKSkK KyAgaWYgKCFzY21faXNfbnVsbF9hbmRfbm90X25pbCAoZXhwKSkKICAgICB7CiAgICAgICBz Y21fcHV0cyAoIiAuICIsIHBvcnQpOwogICAgICAgc2NtX2lwcmluMSAoZXhwLCBwb3J0LCBw c3RhdGUpOwotLSAKMi4zMC4yCgo= --------------F34F286CBE6458ADB584D658--
bug-guile@HIDDEN
:bug#21915
; Package guile
.
Full text available.Received: (at 21915) by debbugs.gnu.org; 14 May 2021 13:35:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 14 09:35:09 2021 Received: from localhost ([127.0.0.1]:45277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lhXy9-0006SB-LC for submit <at> debbugs.gnu.org; Fri, 14 May 2021 09:35:09 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:36734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <taylan.kammer@HIDDEN>) id 1lhXy6-0006Rc-Bc for 21915 <at> debbugs.gnu.org; Fri, 14 May 2021 09:35:08 -0400 Received: by mail-ej1-f47.google.com with SMTP id c20so9305904ejm.3 for <21915 <at> debbugs.gnu.org>; Fri, 14 May 2021 06:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=yX/WcRbtgbu/Pf+clmFrzn6a5bx1olBguyVvZM5/fCA=; b=rG6qhaRLEYd1Mg1gUhJk+s9i8+hvipKL5NfcvkMyYA7N1zVm2fbYPjlBdNqijHAiM5 CC1uUuOOPRwFbD5rIn9dF7VIkGoFiwhCjbu10Z3wBgFxP6HocbC9p19YmwjcP4/RoEXX wWHgxwGGEHlUoSFLX5NkuwfD9riGhRMLnqs6kL39j7j2NzYP470bpsicmmhNN6a4dKoZ dw9cgMLTc4QL/XG8nz8Y8qksSmbxdAN9KbXyI8y1V/C5NoVBzjpJmAeQsA9UMBpCcFN6 3MVD24lpAzHnQ/X1WnW9j+qroIx3CJ+17WeOnXMNB8ao4V3ZQISBj75OdgC9tqxMffRa 0BTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=yX/WcRbtgbu/Pf+clmFrzn6a5bx1olBguyVvZM5/fCA=; b=q/6phxVU8dTOF210q7D9krEbCCcJJETXx9nDNPn7sFPpEjy8QsUBmj8DthgFsImyPh /a8MqCKYVDYYFwZ91p/yVBaweghW15RXNHinY9rbvxARGILklOGdLl849tEc1DasDVJe Wcep1r6Pa6XIwOmHguf03EntDubwhcAkTaVi6jh18Rj9iHjBU7zmYmHdnlCa02hZQoVt CXt5iJCTRQb2MKgQEy5MTRP18DYCKzZ8NnQwNMZSKPxi/aJQ8Y5Ezen4yTZ4bEETzDZZ /gQ/UbdleUPlFRbhmSJdPewpkqBixuIo6M/MNsYv6e7e3RfdgkdV2n9AW5IvSviVJj1/ W06A== X-Gm-Message-State: AOAM5309qvYd0IomgXMvQ94UnuhUDrsdJy+fIAKRA0dVi1idI4gaIkEc Q1tb1zNg2AckOQjVr68xxAQ= X-Google-Smtp-Source: ABdhPJxgpO1Qq5SD288zHWO6qKteREokaBS+PBSow/NhU/tpLSRYiy+vEEES7rHxHY+g0A4CREg6OA== X-Received: by 2002:a17:906:8285:: with SMTP id h5mr48125045ejx.456.1620999300542; Fri, 14 May 2021 06:35:00 -0700 (PDT) Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id o3sm4628971edr.84.2021.05.14.06.35.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 May 2021 06:35:00 -0700 (PDT) To: 21915 <at> debbugs.gnu.org, Zefram <zefram@HIDDEN> From: Taylan Kammer <taylan.kammer@HIDDEN> Subject: write inconsistent about #nil Message-ID: <b69985c6-3bfa-c853-023f-f7ac60236bca@HIDDEN> Date: Fri, 14 May 2021 15:34:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21915 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Zefram, this is an interesting issue. Here's a related one: https://bugs.gnu.org/48318 I think first of all #nil and '() should actually be equal? to each other. After all, both represent the empty list, and checking structural equality between lists is one of the common uses of equal?. It might also be good, in addition, to make the Scheme writer write (foo . #nil) as (foo . #nil). The positive is that it would make bugs in Elisp compatibility easier to see by not masking the fact that one has #nil instead of () at the end of a list. The only negative I can think of is that it would be mildly annoying to see (foo bar . #nil) where you expected to see (foo bar), but I don't think that's ever really harmful. Thoughts? - Taylan
bug-guile@HIDDEN
:bug#21915
; Package guile
.
Full text available.Received: (at submit) by debbugs.gnu.org; 14 Nov 2015 01:47:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 13 20:47:06 2015 Received: from localhost ([127.0.0.1]:37592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ZxPvl-00056e-RR for submit <at> debbugs.gnu.org; Fri, 13 Nov 2015 20:47:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54876) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <zefram@HIDDEN>) id 1ZxPvj-00056T-9y for submit <at> debbugs.gnu.org; Fri, 13 Nov 2015 20:47:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <zefram@HIDDEN>) id 1ZxPvi-0007fc-57 for submit <at> debbugs.gnu.org; Fri, 13 Nov 2015 20:47:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <zefram@HIDDEN>) id 1ZxPvi-0007fY-2E for submit <at> debbugs.gnu.org; Fri, 13 Nov 2015 20:47:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <zefram@HIDDEN>) id 1ZxPvh-0006Db-6r for bug-guile@HIDDEN; Fri, 13 Nov 2015 20:47:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <zefram@HIDDEN>) id 1ZxPvg-0007fH-9I for bug-guile@HIDDEN; Fri, 13 Nov 2015 20:47:01 -0500 Received: from river6.fysh.org ([2001:41d0:d:20da::2]:49365 helo=river.fysh.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <zefram@HIDDEN>) id 1ZxPvg-0007f6-3j for bug-guile@HIDDEN; Fri, 13 Nov 2015 20:47:00 -0500 Received: from zefram by river.fysh.org with local (Exim 4.80 #2 (Debian)) id 1ZxPvc-0006kW-B0; Sat, 14 Nov 2015 01:46:56 +0000 Date: Sat, 14 Nov 2015 01:46:56 +0000 From: Zefram <zefram@HIDDEN> To: bug-guile@HIDDEN Subject: write inconsistent about #nil Message-ID: <20151114014656.GT13455@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.0 (----) The write function is inconsistent about whether it distinguishes between #nil and (): scheme@(guile-user)> '(#nil . a) $1 = (#nil . a) scheme@(guile-user)> '(a . #nil) $2 = (a) Thee latter behaviour, emitting #nil as if it were (), breaks the usual write/read round-tripping, and the traditional correspondence between equal? and matching of written representation. Admittedly those standards are not absolute, nor is the extent to which they're expected to hold documented, but #nil is clearly sufficiently atomic to be the kind of value to which one would expect them to apply. For these reasons, if a consistent behaviour is to be chosen, I think it should be to consistently distinguish the values. I think the behaviour should be consistent. The values should be distinguished or not without regard to the context in which they arise within an s-expression. Whatever is done, even if it's to endorse the inconsistency, the behaviour should be documented, with rationale. -zefram
Zefram <zefram@HIDDEN>
:bug-guile@HIDDEN
.
Full text available.bug-guile@HIDDEN
:bug#21915
; Package guile
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.