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

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

Re: Checkdoc insists on -flag for variable-names even if -p.


From: Stefan Monnier
Subject: Re: Checkdoc insists on -flag for variable-names even if -p.
Date: 05 Feb 2002 16:26:14 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

>     the -p already lets you know that it is a 'boolean/flag'.. but M-x

AFAIK "p" stands for "predicate" and thus is not appropriate for a variable.

>     checkdoc-current-buffer will want to make it doing-good-p-flag.
>     Is -flag preferable to -p ?  Isn't -p also acceptable?  (if i had the
>     choice, i would perhaps use -p instead of -flag).
> -flag is better that -p for a variable.  But checkdoc-current-buffer
> ought to suggest replacing -p with -flag, not adding -flag.
> I will fix that.

I must say that I actually dislike the "-flag" convention.
Too often, such a name makes sense at first when the variable's content
can only be nil or non-nil, but doesn't make much sense any more when the
variable's meaning is extended to distinguish between t and a bunch
of other non-nil values.


        Stefan



reply via email to

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