|
From: | Philip McGrath |
Subject: | Re: Proposal: A new build-system API |
Date: | Tue, 27 Sep 2022 03:56:54 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 |
Hi, On 9/26/22 14:07, Mája Tomášek wrote:
For example, there's currently no guarantee that #:phases will contain list of functions and the error from that will be cryptic. Contrast that with the service-configuration API. There are field sanitizers that ensure that the configuration is propper and easily one can introspect what the build system accepts and what are the defaults.
This in particular is absolutely a valid point. It reminds me that there was some discussion a while ago about error checking/reporting generally in Guix in which I advocated for adopting contracts à la Racket. I'd started putting together a minimal implementation at the time, but I got diverted by other things: I'll try to get back to it.
-Philip
[Prev in Thread] | Current Thread | [Next in Thread] |