[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: |
John Cowan |
Subject: |
Re: [Chicken-hackers] patch: treat #t as alternative to else in cond |
Date: |
Fri, 15 Nov 2013 14:28:40 -0500 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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.
> The problem is that its comparison with quote is unhygienic (I guess
> it's normally used in the compiler after it's been normalised).
Rebinding quote gets you into trouble anyway, because the lexical syntax
'x is unhygienic. Anyone who rebinds any of quote, quasiquote, unquote,
or splicing-unquote deserves to lose.
--
You're a brave man! Go and break through the John Cowan
lines, and remember while you're out there address@hidden
risking life and limb through shot and shell, http://ccil.org/~cowan
we'll be in here thinking what a sucker you are!
--Rufus T. Firefly
Re: [Chicken-hackers] patch: treat #t as alternative to else in cond, Evan Hanson, 2013/11/15