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: Eli Zaretskii
Subject: Re: master 2bb0703 1/2: lisp/*.el: Force non-nil result to t, to match docstring
Date: Thu, 17 Oct 2019 10:57:58 +0300

> From: Lars Ingebrigtsen <address@hidden>
> Date: Thu, 17 Oct 2019 04:19:10 +0200
> Cc: Emacs developers <address@hidden>
> 
> > 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.

No, predicate returns a boolean result.  Recall the recent discussion
of using -p in function and variable names.



reply via email to

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