This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: is_predicate_p?
- From: Jason Merrill <jason at redhat dot com>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 08 Jun 2002 11:44:43 +0100
- Subject: Re: is_predicate_p?
- References: <20020608101901.43C5CF28CE@nile.gnat.com>
>>>>> "Robert" == Robert Dewar <dewar@gnat.com> writes:
>> Predicates in GCC come in a wide variety of spellings. Some end in _p,
>> some start with is_, some have _is_ in the middle, some just expect you to
>> know they're predicates based on the meaning of the name. Should we set
>> some sort of standard spelling for future additions?
> I would have guidelines rather than a standard here. I would avoid the use
> of _p unless you do decide to standardize on this (which seems very dubious
> to me). The use of _p is simply not intuitive. All the other three cases
> sound plausible to me, and I would hesitate to mandate any one over the others.
_p is intuitive to folks coming from a Lisp background, including those of
us who were indoctrinated into the Emacs cult at an early age. But since
this code has little to do with Lisp, I agree that it is probably the wrong
choice. It does have a significant representation in the current sources,
though; try a grep of rtl.h.
Jason