2011/1/26 J. Ian Johnson :
> Hello all. I have a historical question about quoted constants. Does anyone
> know why '1 = 1?
> My intuition is that this is an artifact of conflating quote with list
> constructors. Is that indeed the case?
Depends on what you think of, when you say "conflating quo
Like Joe said. I think that this "quote" behavior is a very practical
convenience that Scheme inherited, not something about which to hurt
one's brain trying to discern the underlying pure truths.
There are some confusing bits. For example:
#lang racket
(equal? (quote 1) 1) ;==> #t
(equal? (
On Wed, Jan 26, 2011 at 8:02 AM, J. Ian Johnson wrote:
> Hello all. I have a historical question about quoted constants. Does anyone
> know why '1 = 1? My intuition is that this is an artifact of conflating quote
> with list constructors. Is that indeed the case?
I doubt it. More likely it was
Hello all. I have a historical question about quoted constants. Does anyone
know why '1 = 1? My intuition is that this is an artifact of conflating quote
with list constructors. Is that indeed the case?
> (equal? '('1 '2) '(1 2))
#f
> (equal? (list '1 '2) (list 1 2))
#t
Thanks,
-Ian
___
4 matches
Mail list logo