emacs-devel
[Top][All Lists]
Advanced

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

Re: master 2bb0703 1/2: lisp/*.el: Force non-nil result to t, to match d


From: Lars Ingebrigtsen
Subject: Re: master 2bb0703 1/2: lisp/*.el: Force non-nil result to t, to match docstring
Date: Thu, 17 Oct 2019 04:19:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Juanma Barranquero <address@hidden> writes:

> On Thu, Oct 17, 2019 at 3:08 AM Lars Ingebrigtsen <address@hidden> wrote:
>
>> Aren't these mostly doc string bugs, though?  That is, the doc string
>> says "t" instead of "non-nil"; it's a common bug.
>
> Depends. When the function is a predicate, t/nil makes more sense
> (generally speaking, there are exceptions) that non-nil/nil.

I thought it was kinda opposite: When it's a predicate, we only care
about nil/non-nil.

We only care about the distinction between non-nil and t when we have a
function that can return many different values, and t has a special
meaning among those values.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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