[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] patch: treat #t as alternative to else in cond
From: |
Aleksej Saushev |
Subject: |
Re: [Chicken-hackers] patch: treat #t as alternative to else in cond |
Date: |
Sat, 16 Nov 2013 11:58:57 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) |
John Cowan <address@hidden> writes:
> Peter Bex scripsit:
>
>> This should probably be handled in the scrutinizer, but for now I guess
>> it's okay to warn on constants. Attached is a patch that detects other
>> constants as well, because that could be an even more common mistake
>> than a plain #t.
>
> It arises as a result of overly literal translations from Common Lisp,
> where there is no analogue of "else" and people commonly use T as the
> condition for else-clauses.
Sorry? How come that there's <<no analogue for "else">>?
T _is_ the analogue.
It is definitly not a mistake to use #t in cond form, since it is the idiom
common to a number of languages that derive from Lisp.
--
BCE HA MOPE!
Re: [Chicken-hackers] patch: treat #t as alternative to else in cond, Evan Hanson, 2013/11/15