[Development] Coding style proposal

Smith Martin Martin.Smith at digia.com
Fri Jan 3 12:43:20 CET 2014


When I want to find a C++ function, I search for "::functionName"

I feel so old.

Wait... I'll be 64 this month. I remember when I first heard the Beatles sing "When I'm 64." I thought I would never be 64 years old. But now here I am, still using old reliable ctrl-s to find functions.

martin
________________________________________
From: development-bounces+martin.smith=digia.com at qt-project.org [development-bounces+martin.smith=digia.com at qt-project.org] on behalf of André Somers [andre at familiesomers.nl]
Sent: Friday, January 03, 2014 12:36 PM
To: development at qt-project.org
Subject: Re: [Development] Coding style proposal

Poenitz Andre schreef op 3-1-2014 12:33:
> André Somers wrote:
>> Poenitz Andre schreef op 2-1-2014 23:49:
>>> Jiergir Ogoerg wrote:
>>>> Ironically, not even the IDE (QtCreator) sorts them out, in my example
>>>> parse...() is the 1st in the list, and locale() is the last one (16th).
>>> There's a "Sort alphabetically" check box in the context menu of
>>> whatever-that-combobox-that-I-never-use-for-navigation-is-called.
>> Well, that's a find! I wonder why it is not enabled by default?
> Probably because the current code follows the rule of "Don't switch on
> a fancy option by default unless it's clearly better than the alternative",
> and I even tend to agree that the rule applies here, and the current default
> is good. But since I don't use the combobox at all, that's not a strong opinion.
>
> If people who actually use the combobox agree that alphabetical order
> should take precedence over the order in which the functions are defined,
> the default can be changed. A patch is now on Gerrit (#74614) and awaits
> comments.
I hardly used it _because_ it was still such a hassle to find anything
in it in a larger file. That might certainly change now...

André
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list