[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using #true and #false everywhere?
From: |
Robin Templeton |
Subject: |
Re: Using #true and #false everywhere? |
Date: |
Sat, 24 Oct 2020 14:29:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Ludovic Courtès <ludo@gnu.org> writes:
> Hello Guix!
>
> As discussed on IRC recently, several of us think that using “#true” and
> “#false” instead of “#t” and “#f” throughout or documentation and code
> would probably make it easier for newcomers to decipher that.
>
> WDYT?
>
> This syntax is supported since Guile 2.0. ‘write’ still uses the
> abbreviations, but the good thing is that it means we can change all of
> gnu/packages without triggering a single rebuild.
>
> As for the manual, I’m afraid it’ll make every msgid that contains
> @code{#t} stale. So maybe now’s not a good time to make this change?
>
> Thoughts?
I like the bikeshed color just as it is ;-) It's not obvious to me that
the "#t"/"#f" syntax is actually more confusing than "#true"/"#false"
for newcomers, and many users would need to learn both ways to write
boolean constants anyway. It may be *more* confusing to newcomers who
know pre-R7RS Scheme, or who refer to external documentation that uses
the shorter names, including the Guile reference manual, existing web
pages about Guix, pre-R7RS Scheme tutorials, etc.
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 <=
Re: Using #true and #false everywhere?, Miguel Ángel Arruga Vivas, 2020/10/16