[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elisp string function question

From: Stefan Monnier
Subject: Re: Elisp string function question
Date: Fri, 18 Jun 2021 10:43:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Ergus [2021-06-18 14:18:07] wrote:
> (string-empty-p nil) returns nil. But nil is not an non-empty string. This
> forces to add some extra checks when using this function.

BTW, I think you're much better off just not using `string-empty-p` and
just use `equal` or `string=`, which is more concise and at least
as clear.


reply via email to

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