:: Re: [DNG] Starting outline for the …
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: aitor
Fecha:  
A: dng
Asunto: Re: [DNG] Starting outline for the DNG Safe Programmer Certificate
Hi,

On 1/8/21 14:41, tito via Dng wrote:
> Hi,
> I really prefer
>
> if (mybool) {
>     do_my_stuff();
>     do_other_stuff);
> }

>
> for the rule of least vertical screen usage (same as yours)
> and the brace and the if on the same indentation level
> make it clear where the conditional block of code stops.


Me too. I tend to use the Linux Kernel coding style:

https://www.kernel.org/doc/html/v4.10/process/coding-style.html
<https://www.kernel.org/doc/html/v4.10/process/coding-style.html>

Cheers,

Aitor.