unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Robert Vollmert <rob@vllmrt.net>
Cc: 36547@debbugs.gnu.org
Subject: bug#36547: expect an earlier/clearer error when trying to splice(?) a function into a gexp
Date: Thu, 11 Jul 2019 18:06:52 +0200	[thread overview]
Message-ID: <87ims8sggz.fsf@gnu.org> (raw)
In-Reply-To: <BA8E755C-27FE-4762-8738-FEA631EFD0ED@vllmrt.net> (Robert Vollmert's message of "Mon, 8 Jul 2019 14:33:36 +0200")

Robert Vollmert <rob@vllmrt.net> skribis:

> I tried to use a function in a gexp along the lines of
>
> (define* (f x) …)
>
> #~(begin
>      (#$f x)
>      …)
>
> This resulted in the following error:
>
> ERROR: In procedure primitive-load:
> In procedure scm_lreadr: /gnu/store/wcw0fii855axkiqfz05283rwl7nlrb3i-puzzledb-blogs-job-builder:1:254: Unknown # object: #\<
>
> where the referenced builder file contains
>
> … (let ((backend (#<procedure read-secret (file)> "tools.token"))) …
>
> It seems to me that whatever code writes the builder file should already complain at the point
> where it substitutes #<procedure read-secret (file)> — is that possible?

I think ‘gexp->sexp’ should simply error out whenever an object that
lacks a read syntax (like a procedure) is inserted in a gexp.

Ludo’.

      reply	other threads:[~2019-07-11 16:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-08 12:33 bug#36547: expect an earlier/clearer error when trying to splice(?) a function into a gexp Robert Vollmert
2019-07-11 16:06 ` 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=87ims8sggz.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=36547@debbugs.gnu.org \
    --cc=rob@vllmrt.net \
    /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).