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: Stefan Monnier
Subject: Re: master 2bb0703 1/2: lisp/*.el: Force non-nil result to t, to match docstring
Date: Thu, 17 Oct 2019 14:31:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> There's a cascading effect.

Indeed, that's another reason why consistency is beneficial.

> So I think functions that can only return a boolean are not
> "overspecified" by saying so.

That's because you think they should return t.  For those whose think
they should return non-nil, it's overspecified (even if they do only
ever return t in practice).

> FWIW, I don't consider making a function return what its docstring says "a
> cosmetic change".

I think a single bikeshed subject is sufficient, so I won't take this
opportunity to debate the definition of "cosmetic".


        Stefan




reply via email to

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