GNU bug report logs -
#24706
26.0.50; Minor mode functions should do strict argument type checking
Previous Next
Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>
Date: Sun, 16 Oct 2016 15:49:01 UTC
Severity: wishlist
Found in version 26.0.50
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> Why would you change the behavior, instead of just clarifying
>> the doc?
>
> I generally prefer the behavior to be as strict as possible.
> Consider (foo-mode 'disable) If you read such code, do you
> assume that this enables foo-mode?
If I understand the function, then yes. But I agree that the
doc could make the function behavior clearer.
That example is akin to this:
(deconst two 42)
(+ 3 two)
There are plenty of ways to write code that is perverse in
terms of readability (whether or not it has the right behavior).
> However, in this case I guess it's too late, and fixing the
> documentation is indeed more appropriate.
It would be a backward-incompatible change. (And I do not
see any advantage to it. But others might disagree with
me and agree with you.)
This bug report was last modified 4 years and 291 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.