help-gnu-emacs
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]