3 ms·
> But in Commonlisp all numbers are "eq" No, that's not true. >> numbers with the same value need not be eq, http://clhs.lisp.se/Body/f_eq.htm#eq http://clhs
by Jtsummers 1y ago
> But in Commonlisp all numbers are "eq"
No, that's not true.
>> numbers with the same value need not be eq,
http://clhs.lisp.se/Body/f_eq.htm#eq http://clhs.lisp.se/Body/f_eq.htm#eq
It's not guaranteed that eq will return true for two numbers of the same value in Common Lisp. It happens to work much of the time, but it is never guaranteed to work. For a given implementation it could even be true all the time (as it's not disallowed), but for portability it should not be relied upon.