[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using #true and #false everywhere?
From: |
Ludovic Courtès |
Subject: |
Re: Using #true and #false everywhere? |
Date: |
Wed, 21 Oct 2020 12:04:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
Ricardo Wurmus <rekado@elephly.net> skribis:
> 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).
I agree. That means replacing ‘every’ with ‘for-each’.
Ludo’.
- Re: Using #true and #false everywhere?, (continued)
- 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, 2020/10/21
- Re: Using #true and #false everywhere?,
Ludovic Courtès <=
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