[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp string function question
From: |
Emanuel Berg |
Subject: |
Re: Elisp string function question |
Date: |
Sun, 20 Jun 2021 03:09:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> I just tried and this:
>>
>> (string-empty-p nil) returns nil. But nil is not an
>> non-empty string.
>
> nil is a lot of things, it is the boolean false, it is
> a variable with a value that isn't ready to be used, it is
> an empty list, and apparently and empty string as well:
>
> (string= "" nil)
>
> Thanks for mentioning `string-empty-p' BTW, didn't know of
> that, now I can remove my own `empty-string-p' :P
>
> (which shows the same bahavior BTW)
No, it doesn't, why did I ever remove it? I thought it was the
same as this but it wasn't, (string-empty-p nil) should be
t according to the way I've been using it! Christ, no wonder
nothing works all of a sudden.
--
underground experts united
https://dataswamp.org/~incal
- Re: Elisp string function question, (continued)
Re: Elisp string function question, Stefan Monnier, 2021/06/18
Re: Elisp string function question, Michael Heerdegen, 2021/06/18
Re: Elisp string function question, Emanuel Berg, 2021/06/18
- Re: Elisp string function question,
Emanuel Berg <=
Re: Elisp string function question, Michael Heerdegen, 2021/06/18