This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: is_predicate_p?
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 09 Jun 2002 12:26:16 +0100
- Subject: Re: is_predicate_p?
- Organization: Codesourcery LLC
- References: <wvl4rgeryxr.fsf@prospero.cambridge.redhat.com>
Jason Merrill wrote:
>
> 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'd vote for the _p convention. FWIW I used to use the is_ convention and
found it more awkward. I think the reason may be that with predicates
you are asking a question, and in english you'd use a ? at the end of the
sentance. The is_foo form looks a little like an assertion. May be a
spanish speaker would prefer the is_ convention (or even is_foo_p :-)
Although I use lisp, I don't consider myself as coming from a lisp
background.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org