[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using empty_string as the only "" string
From: |
Miles Bader |
Subject: |
Re: Using empty_string as the only "" string |
Date: |
Wed, 25 Apr 2007 06:39:15 +0900 |
"Juanma Barranquero" <address@hidden> writes:
>> I see nothing wrong with that.
>
> I do see it. The issue is not string comparison, but object identity.
> I would be mightily surprised if
>
> (eq (- 2.0 0.0) (- 2.0 0.0)) => nil
> (eq (- 2.0 1.0) (- 2.0 1.0)) => nil
> (eq (- 2.0 2.0) (- 2.0 2.0)) => t
>
> were true.
If so, it's because you misunderstand lisp.
There's absolutely nothing wrong with canonicalizing immutable objects
in lisp (and many implementations in fact do so).
-miles
--
Is it true that nothing can be known? If so how do we know this? -Woody Allen
- Re: Using empty_string as the only "" string, (continued)
- Re: Using empty_string as the only "" string, David Kastrup, 2007/04/24
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/24
- Re: Using empty_string as the only "" string, Kenichi Handa, 2007/04/24
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/25
- Re: Using empty_string as the only "" string, David Kastrup, 2007/04/25
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/25
- Re: Using empty_string as the only "" string, Lennart Borgman (gmail), 2007/04/24
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/24
- Re: Using empty_string as the only "" string, David Kastrup, 2007/04/24
- Re: Using empty_string as the only "" string, Andreas Schwab, 2007/04/24
- Re: Using empty_string as the only "" string,
Miles Bader <=
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/24
- Re: Using empty_string as the only "" string, Miles Bader, 2007/04/24
- Re: Using empty_string as the only "" string, Juanma Barranquero, 2007/04/24
- Re: Using empty_string as the only "" string, Miles Bader, 2007/04/24
- Re: Using empty_string as the only "" string, Johan Bockgård, 2007/04/24
- Re: Using empty_string as the only "" string, Miles Bader, 2007/04/24
- Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/25
- Re: Using empty_string as the only "" string, Daniel Brockman, 2007/04/26
- Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/27
- Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/24