emacs-devel
[Top][All Lists]
Advanced

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

Re: empty-directory predicate, native implementation


From: Michael Albinus
Subject: Re: empty-directory predicate, native implementation
Date: Wed, 14 Oct 2020 18:21:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> I think 0 doesn't make much sense, so we might as well not support
> that at all.

In general, I agree. Calling directory-files with COUNT being 0,
literally, doesn't make sense. But COUNT could be the result of some
arithmetics, and instead urging the caller to test it, we could simply
return nil. Which is correct, reading nil as the empty list.

And it doesn't cost us anything.

Best regards, Michael.



reply via email to

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