This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: is_predicate_p?
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: nathan at codesourcery dot com, gcc at gcc dot gnu dot org, jason at redhat dot com
- Date: Sun, 9 Jun 2002 13:15:00 -0400
- Subject: Re: is_predicate_p?
- Organization: Red Hat Canada
- References: <20020609170901.04A26F2CB0@nile.gnat.com>
On Sun, 09 Jun 2002, Robert Dewar wrote:
> <<I personally tend to use is_foo for adjectives (e.g.,
> is_binary_expr) and foo_p for verbs (e.g., stmt_ends_bb_p).
> >>
>
> But the _p here seems gratuitous, stmt_ends_bb is a perfectly reasonable
> name for a predicate and reads just fine.
>
Right, hence my conclusion that we should probably get rid of the
_p suffix.
Diego.