[racket-users] `eqv?` vs `eq?` for interned numbers & characters

2016-07-24 Thread Matthew Butterick
The docs say `eqv?` differs from `eq?` only for nmbers and characters. But is this still true since numbers and characters became interned data types in 2011? [1] If it were true I would've expected the docs to say so; OTOH the docs do not provide an example of, say, a pair of numbers where to

Re: [racket-users] `eqv?` vs `eq?` for interned numbers & characters

2016-07-24 Thread Jon Zeppieri
On Mon, Jul 25, 2016 at 12:35 AM, Matthew Butterick wrote: > The docs say `eqv?` differs from `eq?` only for nmbers and characters. But > is this still true since numbers and characters became interned data types > in 2011? [1] > That mail thread is specifically about *literal* data being intern

Re: [racket-users] `eqv?` vs `eq?` for interned numbers & characters

2016-07-24 Thread Robby Findler
That was, I believe, only literal chars. You might try an experiment was integer->char or other char-producing functions to see if you can get equal? but not eq? chars. And if you discover conclusive evidence, then an edit to the docs would be most welcome! Robby On Monday, July 25, 2016, Matthew