bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#57673: [PATCH] Parse --help messages for pcomplete


From: Augusto Stoffel
Subject: bug#57673: [PATCH] Parse --help messages for pcomplete
Date: Wed, 14 Sep 2022 23:23:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

On Wed, 14 Sep 2022 at 16:40, Stefan Monnier wrote:

> Tho to be perfectly honest, I think any keyword argument whose default
> value is not the same as nil is a problem (I know, sometimes there can
> be good reasons for that, but we should try to avoid them as much as
> possible).

Hum, that's a strong claim, and if I heard it from a clean code
influencer I would be rather suspicious.  So I'm curious why you think
that way.

My thinking is that in the body of the function you can do anything at
all, while in the arglist the only thing you can do (sanely) is to
nominate a value.  So if your default _is_ just a plain old value, it's
reassuring to see it declared in the arglist.





reply via email to

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