GNU bug report logs - #52749
G-expressions don't consistently preserve #nil

Previous Next

Package: guix;

Reported by: Philip McGrath <philip <at> philipmcgrath.com>

Date: Thu, 23 Dec 2021 04:32:02 UTC

Severity: normal

Full log


Message #8 received at 52749 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Philip McGrath <philip <at> philipmcgrath.com>, 52749 <at> debbugs.gnu.org
Subject: Re: bug#52749: G-expressions don't consistently preserve #nil
Date: Thu, 23 Dec 2021 06:59:58 +0000
Hi,

Philip McGrath schreef op wo 22-12-2021 om 23:25 [-0500]:
> G-expressions currently do not consistently preserve the distinction 
> between #nil and '(), which causes trouble for programs that rely on 
> that distinction. In particular, the issue affects programs that use 
> (guix build json), because that library uses #nil to represent the JSON 
> value `null', whereas it uses '() to represent an empty JSON array.

The constant #nil is only for elisp compatibility and not something
supposed to be used in Scheme code that isn't for Scheme/elisp
compatibility, so this seems more a bug in (guix build json) to me.

Greetings,
Maxime.





This bug report was last modified 3 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.