[Top][All Lists]

[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: Fri, 18 Jun 2021 23:25:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Ergus wrote:

> 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)

underground experts united

reply via email to

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