[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 14:49:57 +0900 |
"dmantipov" <address@hidden> writes:
> All CLs I've installed (clisp, cmucl and franz) gives (eq 0 0) => t and
> (eq "" "") => nil. But a) we can tweak 'eq' to handle this special case
> (looks poor, but just to purify the language)
No, eq should not be "tweaked" (especially for something so silly as the
current discussion) -- it's supposed to be fast and straightforward, and
as long as it does the right thing in those cases where its behavior
_is_ defined, who cares if it reveals implementation idiosyncrasies in
case where it's not? Some things in lisp (CL or otherwise) are defined
narrowly, but not everything is, and that's ok.
-Miles
--
We are all lying in the gutter, but some of us are looking at the stars.
-Oscar Wilde
Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/24
Re: Using empty_string as the only "" string, Stefan Monnier, 2007/04/24
Re: Using empty_string as the only "" string, Richard Stallman, 2007/04/24
Re: using empty_string as the only "" string, dmantipov, 2007/04/25
Re: using empty_string as the only "" string, Richard Stallman, 2007/04/26
- Re: using empty_string as the only "" string, Dmitry Antipov, 2007/04/26
- Re: using empty_string as the only "" string, Richard Stallman, 2007/04/27
- Re: using empty_string as the only "" string, Dmitry Antipov, 2007/04/27
- Re: using empty_string as the only "" string, David Kastrup, 2007/04/27
- Re: using empty_string as the only "" string, Richard Stallman, 2007/04/28