[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using #true and #false everywhere?
From: |
Andreas Enge |
Subject: |
Re: Using #true and #false everywhere? |
Date: |
Wed, 21 Oct 2020 13:21:34 +0200 |
On Wed, Oct 21, 2020 at 11:59:40AM +0200, Ludovic Courtès wrote:
> What material are you referring to? SICP & co.?
I simply used my favourite search engine with something such as
scheme language boolean
In my case the first link is to the racket manual:
https://docs.racket-lang.org/reference/booleans.html
Or this:
https://courses.cs.washington.edu/courses/cse341/02sp/scheme/basics.html
Or the Wikipedia entry:
https://en.wikipedia.org/wiki/Scheme_%28programming_language%29
Any kind of search quickly reveals that booleans in Scheme are coded
using #t and #f; whereas to find #true and #false, my impression is that
one already needs to know that these are possibilities. I find their use
more confusing than helpful.
Now if we drop the #t from phases as discussed in the present thread,
that would be even better. I have never been convinced by phases that
always return #t and never #f; what is the point of a return value
if it is not really checked?
Andreas
Re: Using #true and #false everywhere?, Vagrant Cascadian, 2020/10/16
Re: Using #true and #false everywhere?, Danny Milosavljevic, 2020/10/16
Re: Using #true and #false everywhere?, Andreas Enge, 2020/10/20