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: Eli Zaretskii
Subject: Re: empty-directory predicate, native implementation
Date: Wed, 14 Oct 2020 19:29:38 +0300

> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: arthur.miller@live.com,  emacs-devel@gnu.org
> Date: Wed, 14 Oct 2020 18:21:21 +0200
> 
> 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.

I'm okay with interpreting "don't support" as "return nil".



reply via email to

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