From: "Ludovic Courtès" <ludo@gnu.org>
To: jgart <jgart@dismail.de>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: reader macros for hidden packages
Date: Mon, 27 Jun 2022 10:56:12 +0200 [thread overview]
Message-ID: <87ilomjxhv.fsf@gnu.org> (raw)
In-Reply-To: <20220625222700.GC3148@gac> (jgart@dismail.de's message of "Sat, 25 Jun 2022 22:27:00 -0500")
Hi,
jgart <jgart@dismail.de> skribis:
> Out of curiosity, is it possible to make reader macros like this with guile?
>
> ```
> @hidden
> (define-public python-httplib2
As Maxime notes, ‘read-hash-extend’ is the only reader extension
mechanism, and it only supports hash-prefixed extensions.
That said, I very much recommend against reader extensions because they
don’t compose (the extension is installed globally), they are not
namespaced, etc. I find it OK in very narrow cases, such as gexps, but
I wouldn’t use them anywhere else.
The good thing is that we can often achieve concise syntax with sexps as
well, like:
(define-public python-httplib2
(hidden-package (package …)))
HTH!
Ludo’.
prev parent reply other threads:[~2022-06-27 8:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-26 3:27 reader macros for hidden packages jgart
2022-06-26 7:27 ` Maxime Devos
2022-06-26 14:43 ` jgart
2022-06-26 14:55 ` Maxime Devos
2022-06-26 20:08 ` jgart
2022-06-27 8:56 ` Ludovic Courtès [this message]
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=87ilomjxhv.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=jgart@dismail.de \
/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).