[racket-dev] A curious question about quote

2011-01-26 Thread 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? (equal? '('1 '2) '(1 2)) #f (equal? (list '1 '2) (list 1 2)) #t Thanks, -Ian

Re: [racket-dev] [plt] Push #22082: master branch updated

2011-01-26 Thread Robby Findler
Thanks! Robby On Wed, Jan 26, 2011 at 4:27 PM, stch...@racket-lang.org wrote: stchang has updated `master' from 40610643bf to 1ab22f7c2b.  http://git.racket-lang.org/plt/40610643bf..1ab22f7c2b =[ 1 Commits ]== Directory summary:  

Re: [racket-dev] [plt] Push #22081: master branch updated

2011-01-26 Thread Matthew Flatt
At Wed, 26 Jan 2011 17:07:32 -0500, e...@racket-lang.org wrote: +(let ([n0 (! n)]) + (unless (exact-nonnegative-integer? n) +(raise-type-error 'take non-negative exact integer 0 n l)) Still committing changes with no tests. Still broken: (list-ref (take (car (list 1))

Re: [racket-dev] [plt] Push #22081: master branch updated

2011-01-26 Thread Robby Findler
Happily, Stephen's earlier change actually started a test suite, so adding more tests should be easy to do. Robby On Wed, Jan 26, 2011 at 4:58 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Wed, 26 Jan 2011 17:07:32 -0500, e...@racket-lang.org wrote: +    (let ([n0 (! n)]) +      (unless

Re: [racket-dev] [plt] Push #22081: master branch updated

2011-01-26 Thread Stephen Chang
That wasnt the bug that I was fixing. On Wed, Jan 26, 2011 at 5:58 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Wed, 26 Jan 2011 17:07:32 -0500, e...@racket-lang.org wrote: +    (let ([n0 (! n)]) +      (unless (exact-nonnegative-integer? n) +        (raise-type-error 'take non-negative

Re: [racket-dev] [plt] Push #22081: master branch updated

2011-01-26 Thread Stephen Chang
Oh sorry, didnt read carefully. I now see that it wasnt my push you were replying to. On Wed, Jan 26, 2011 at 6:42 PM, Stephen Chang stch...@ccs.neu.edu wrote: That wasnt the bug that I was fixing. On Wed, Jan 26, 2011 at 5:58 PM, Matthew Flatt mfl...@cs.utah.edu wrote: At Wed, 26 Jan

Re: [racket-dev] [plt] Push #22083: master branch updated

2011-01-26 Thread Stephen Chang
Ok I'll add it. On Wed, Jan 26, 2011 at 6:36 PM, Robby Findler ro...@eecs.northwestern.edu wrote: Also: you want a test that captures the reason Eli made the change in the first place, ie  (take 0 (car 'x)) or something. Robby On Wed, Jan 26, 2011 at 5:14 PM,  stch...@racket-lang.org

Re: [racket-dev] A curious question about quote

2011-01-26 Thread Neil Van Dyke
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?