[Development] kdelibs coding style
Lorn Potter
lorn.potter at gmail.com
Tue Apr 30 21:34:56 CEST 2013
On 01/05/2013, at 2:01 AM, Thiago Macieira <thiago.macieira at intel.com> wrote:
> On segunda-feira, 29 de abril de 2013 23.30.59, André Pönitz wrote:
>> The rules are ok as they are (pretty much as _any_ set of consistently
>> applied and not-completely-weird rules). Opening them up only leads to
>> more review bikeshedding.
>>
>> It's not that people actively change coding style in old Qt code, and
>> there's always the "don't stick to the rules if it makes you look bad"
>> excuse.
>
> Let's not try to change any of the rules, since this leads to bikeshedding,
> like André said. It clearly has already become that.
>
> So let's just change the interpretation: the "don't stick to the rules" allows
> us to accept a slightly different style if that makes it nicer. That should be
> enough to apply to the case of braces in single-line ifs.
I have preferred and written always using braces.
These were always meant as guidelines not hard rules.
Lorn Potter
Senior Software Engineer, QtSensors/QtSensorGestures
More information about the Development
mailing list