On Mon, Dec 06, 2004 at 02:11:55PM +0100, Lars Gullik Bjønnes wrote:
> Andre Poenitz <[EMAIL PROTECTED]> writes:
>
> | Could you please add that to the coding style rules. IIRC the general
> | rule is to avoid unnecessary braces in general but I agree that this is
> | a case where the unnecessary
Angus Leeming <[EMAIL PROTECTED]> writes:
| Jean-Marc Lasgouttes wrote:
>> Lars> Like this perhaps:
>>
>> + int foo = (forba() == hans ? some1() : some2());
>> + -NOT-
>> + int foo = forba() == hans ? some1() : some2();
>>
>> I would think that
>> + int foo = (forba() == hans) ?
Jean-Marc Lasgouttes wrote:
> Lars> Like this perhaps:
>
> + int foo = (forba() == hans ? some1() : some2());
> + -NOT-
> + int foo = forba() == hans ? some1() : some2();
>
> I would think that
> + int foo = (forba() == hans) ? some1() : some2();
> is clearer in this case. Is it j
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Like this perhaps:
+ int foo = (forba() == hans ? some1() : some2());
+ -NOT-
+ int foo = forba() == hans ? some1() : some2();
I would think that
+ int foo = (forba() == hans) ? some1() : some2();
is cl
Andre Poenitz <[EMAIL PROTECTED]> writes:
| Could you please add that to the coding style rules. IIRC the general
| rule is to avoid unnecessary braces in general but I agree that this is
| a case where the unnecessary braces might even be preferable.
Like this perhaps:
? rules-1.diff
Index: Cod
Lars Gullik BjÃnnes wrote:
> Alfredo Braunstein <[EMAIL PROTECTED]> writes:
>
> | + int max_depth = beg != 0 ? pars_[beg - 1].getMaxDepthAfter() : 0;
>
> Please add some parenthesis: int m = (foo ? dfd : fdf);
> Even if not needed it is a tiny bit clearer.
>
> | + int max_depth = beg != 0 ?
On Mon, Dec 06, 2004 at 09:07:02AM +0100, Lars Gullik Bjønnes wrote:
> Alfredo Braunstein <[EMAIL PROTECTED]> writes:
>
> | + int max_depth = beg != 0 ? pars_[beg - 1].getMaxDepthAfter() : 0;
>
> Please add some parenthesis: int m = (foo ? dfd : fdf);
> Even if not needed it is a tiny bit clear
Alfredo Braunstein <[EMAIL PROTECTED]> writes:
| + int max_depth = beg != 0 ? pars_[beg - 1].getMaxDepthAfter() : 0;
Please add some parenthesis: int m = (foo ? dfd : fdf);
Even if not needed it is a tiny bit clearer.
| + int max_depth = beg != 0 ? pars_[beg - 1].getMaxDepthAfter() : 0;