guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: better error messages through assertions


From: Ricardo Wurmus
Subject: Re: better error messages through assertions
Date: Sat, 26 Feb 2022 14:33:08 +0100
User-agent: mu4e 1.6.10; emacs 28.0.50

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> I hear we now have "field sanitizers" on Guix records; without having
> dug the details, it seems to be we could add a predicate validating the
> input there?

I don’t see how that would help here.  In my example the service values
themselves are all right.  It’s a procedure acting on what it assumes is
a list of service values that fails.

Record field validation would not have prevented that error.

-- 
Ricardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]