[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using #true and #false everywhere?
From: |
Ricardo Wurmus |
Subject: |
Re: Using #true and #false everywhere? |
Date: |
Wed, 21 Oct 2020 08:18:42 +0200 |
User-agent: |
mu4e 1.4.13; emacs 27.1 |
Hi Mark,
Mark H Weaver <mhw@netris.org> writes:
> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> I think it’s very ugly that we still need to end phases with #T, even
>> though build systems don’t care any more. The only thing that aborts a
>> build phase now is an exception.
>
> I would be glad if this were the case, but I believe you're mistaken.
> On both master and core-updates, in (guix build gnu-build-system), the
> 'gnu-build' procedure iterates over the phases using 'every', and
> procedure passed to 'every' ends by returning 'result', which is the
> value that the phase returned. Am I missing something?
No, you are correct. My meaning was more about intent; in the early
days of the change to INVOKE I’ve seen a couple of warnings telling me
that a phase returned #<unspecified> or #F, but that didn’t result in
aborting the build. We have decided a long time ago that the only way
to exit a build should be through an exception, so I think it’s time to
update the last few build system remnants of the Boolean assumption (on
core-updates).
--
Ricardo
- Re: Using #true and #false everywhere?, (continued)
- Re: Using #true and #false everywhere?, Danny Milosavljevic, 2020/10/16
- Re: Using #true and #false everywhere?, Andreas Enge, 2020/10/20
- Re: Using #true and #false everywhere?, Ricardo Wurmus, 2020/10/20
- Re: Using #true and #false everywhere?, zimoun, 2020/10/20
- Re: Using #true and #false everywhere?, Tobias Geerinckx-Rice, 2020/10/20
- Re: Using #true and #false everywhere?, zimoun, 2020/10/20
- Re: Using #true and #false everywhere?, Tobias Geerinckx-Rice, 2020/10/20
- Re: Using #true and #false everywhere?, zimoun, 2020/10/20
- Re: Using #true and #false everywhere?, Taylan Kammer, 2020/10/20
- Re: Using #true and #false everywhere?, Mark H Weaver, 2020/10/20
- Re: Using #true and #false everywhere?,
Ricardo Wurmus <=
- Re: Using #true and #false everywhere?, Ludovic Courtès, 2020/10/21
Re: Using #true and #false everywhere?, zimoun, 2020/10/20
Re: Using #true and #false everywhere?, Ludovic Courtès, 2020/10/21
Re: Using #true and #false everywhere?, Robin Templeton, 2020/10/24
Re: Using #true and #false everywhere?, Miguel Ángel Arruga Vivas, 2020/10/16