guix-devel
[Top][All Lists]
Advanced

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

Re: Using #true and #false everywhere?


From: Taylan Kammer
Subject: Re: Using #true and #false everywhere?
Date: Tue, 20 Oct 2020 17:48:23 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1

On 20.10.2020 16:26, zimoun wrote:
On Tue, 20 Oct 2020 at 15:32, Tobias Geerinckx-Rice <me@tobias.gr> wrote:
zimoun 写道:
Maybe it is on my part but it returns #t and not #true.  So
somehow
you need to know that #t is also #true or fix the REPL to return
#true
and not #t.

Right.  Making e.g. define-record-type ‘return #true’ would not
change what's actually returned under the hood.

It is what I have tried to express [1]:  I am not convinced that
replacing in the Guix source by #true or #false instead of #t or #f
really simplifies and helps the newcomer.  Because all the internals
use #t or #f.  For example, there are often #t or #f in Backtrace
messages (random example [2]).  REPL is another example.  Somehow, you
have to know what #t and #f means, even if you are a newcomer.

The only remaining argument IMHO in favor of the change is cosmetic
(not newcomer friendly): it is more pleasant to read #false here and
there in the source code.  Well, I do not have a strong opinion,  I am
still doubtful.

Shouldn't it suffice to just change 'write'? I think that should change 99.9% of all places where Guile outputs "#f" or "#t" for false/true.

- Taylan



reply via email to

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