This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Switching to C++ by default in 4.8
- From: Torvald Riegel <triegel at redhat dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc at gcc dot gnu dot org, Michael Matz <matz at suse dot de>, Xinliang David Li <davidxl at google dot com>, Jakub Jelinek <jakub at redhat dot com>, Richard Guenther <richard dot guenther at gmail dot com>, Bernd Schmidt <bernds at codesourcery dot com>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, David Edelsohn <dje dot gcc at gmail dot com>, Diego Novillo <dnovillo at google dot com>
- Date: Tue, 10 Apr 2012 21:55:57 +0200
- Subject: Re: Switching to C++ by default in 4.8
- References: <4F7B356E.9080003@google.com> <Pine.LNX.4.64.1204101814180.25409@wotan.suse.de> <1334078968.11195.64.camel@triegel.csb> <201204101959.33888.ebotcazou@adacore.com>
On Tue, 2012-04-10 at 19:59 +0200, Eric Botcazou wrote:
> > Think about programmers new to GCC for a second, and about code
> > completion tools. It seems to me that with such a tool it's much easier
> > to navigate from exp to the field, than having to scan through a much
> > larger number of accessor functions / macros (GET_*). The former
> > example starts at the source (exp) and yields/"builds" the result; the
> > latter names some function and then says applies it to the source. Why
> > is the former so much worse?
>
> Because it takes x3 characters/x3 time to type/x3 slots in your memory?
I hope this is meant to be ironic.
Or are you really saying that the number of characters determines how
quickly/easily a brain can remember/find something like an API
item/keyword/...? If so, and if we assume that GET, FIELD, and DECL are
the most likely (sub-)parts of function names shouldn't it be G_F_D
(exp) then? ;)
Torvald