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

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

Re: no empty (zero) string predicate in Elisp


From: Stefan Monnier
Subject: Re: no empty (zero) string predicate in Elisp
Date: Sat, 25 Apr 2015 09:30:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>>>>> "Emanuel" == Emanuel Berg <address@hidden> writes:

> In one of my w3m extensions [1] I have
>     (defun empty-string-p (str)
>       (string= str "") )

I do wonder, why you'd rather write

           (empty-string-p foo)
instead of
           (equal "" foo)
or
           (string= "" foo)

I mean, really, what's the gain?  It's longer, slower, and not
higher-level either.


        Stefan "yes, I know Elisp has `zerop' but that's stupid as well"




reply via email to

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