GNU bug report logs - #68413
Ungexp doesn't work on deep lists

Previous Next

Package: guix;

Reported by: Justin Veilleux <terramorpha <at> cock.li>

Date: Sat, 13 Jan 2024 01:53:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Justin Veilleux <terramorpha <at> cock.li>
To: 68413 <at> debbugs.gnu.org
Subject: bug#68413: Ungexp doesn't work on deep lists
Date: Fri, 12 Jan 2024 20:52:21 -0500
Hi, I've been using G-expressions for some time and have always been
hindered by `ungexp` not working on deeper lists. For instance, when I
want to embed in a G-expression a list of packages, it works

>(define packages (list coreutils gnu-make ...))
>
> #~(for-each
>    (lambda (f)
>      ... do-something)
>    '#$packages)

But as soon as I use an object in which the file-like objects are
deeper, it fails

> (define packages
>         (list
>          (cons "coreutils" coreutils)
>          (cons "make" gnu-make)
>          ...))
>
> #~(for-each
>    (lambda (f)
>      ... do-something)
>    '#$packages)

If I send a patch to "fix" this, will it be usefull or is there a reason
for this behavior?

Thanks.




This bug report was last modified 1 year and 150 days ago.

Previous Next


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