unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: guix-devel@gnu.org
Subject: Re: wip-signed-archives progress report
Date: Fri, 28 Mar 2014 00:34:08 +0100	[thread overview]
Message-ID: <87eh1ntdvz.fsf@gnu.org> (raw)
In-Reply-To: <87d2h78vn4.fsf@karetnikov.org> (Nikita Karetnikov's message of "Thu, 27 Mar 2014 20:16:15 +0400")

Nikita Karetnikov <nikita@karetnikov.org> skribis:

>> Nikita: comments welcome on the two commits I just pushed in
>> wip-signed-archives.
>
> Thanks for working on it.  One question: in the past, you told me to
> avoid ‘false-if-exception’.  If it’s an issue here, can we replace it
> with something else?

What did I say?  :-)  (We have a saying in French: “do what I say, not
what I do”.  ;-))

I used it in two places:

                   (false-if-exception
                    (and=> signature narinfo-signature->canonical-sexp))

and:

  (define (valid-narinfo? narinfo)
    "Return #t if NARINFO's signature is not valid."
    (false-if-exception (begin (assert-valid-narinfo narinfo) #t)))

‘false-if-exception’ should indeed be used with care, because it hides
every error (including unbound var errors and such!), so it could be
hiding errors that really ought to be reported.

In the above cases I considered it OK, because the set of exceptions
that can possibly be raised is limited, and because the outcome of
‘false-if-exception’ is conservative (that is, at worst all narinfos
will be treated as if they were unsigned or invalid.)

Does it makes sense?

Ludo’.

  reply	other threads:[~2014-03-27 23:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-26 23:02 wip-signed-archives progress report Ludovic Courtès
2014-03-27 16:16 ` Nikita Karetnikov
2014-03-27 23:34   ` Ludovic Courtès [this message]
2014-03-30 21:54 ` Support for signed substitutes pushed Ludovic Courtès
2014-03-31 18:24   ` Alex Sassmannshausen
2014-03-31 20:00     ` Ludovic Courtès
2014-04-01 22:01   ` Ludovic Courtès
2014-04-03 17:21   ` Andreas Enge
2014-04-03 19:48     ` Ludovic Courtès
2014-04-03 20:45       ` Andreas Enge

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=87eh1ntdvz.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=nikita@karetnikov.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).