From: Justin Veilleux <terramorpha@cock.li>
To: 68413@debbugs.gnu.org
Subject: bug#68413: Ungexp doesn't work on deep lists
Date: Fri, 12 Jan 2024 20:52:21 -0500 [thread overview]
Message-ID: <87v87yvw2y.fsf@cock.li> (raw)
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.
next reply other threads:[~2024-01-13 1:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-13 1:52 Justin Veilleux [this message]
2024-01-13 11:38 ` bug#68413: Ungexp doesn't work on deep lists Josselin Poiret via Bug reports for GNU Guix
2024-01-15 9:46 ` Ludovic Courtès
2024-01-15 16:28 ` Josselin Poiret via Bug reports for GNU Guix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v87yvw2y.fsf@cock.li \
--to=terramorpha@cock.li \
--cc=68413@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).