[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave coding convention
From: |
Juan Pablo Carbajal |
Subject: |
Re: Octave coding convention |
Date: |
Tue, 16 Dec 2014 17:56:08 +0100 |
On Tue, Dec 16, 2014 at 5:46 PM, Rik <address@hidden> wrote:
> 12/16/14
>
> Juan,
>
> One change I would make to your patch is to follow the Octave coding
> convention of having parentheses around the condition being tested in an if
> clause.
>
> + if dx < 1
> + dx = 0.5;
> + x_origin = 0.75;
> + endif
>
> =>
>
> + if (dx < 1)
> + dx = 0.5;
> + x_origin = 0.75;
> + endif
>
> Otherwise it looks fine.
>
> --Rik
>
Thanks Rik, I will try to remember it for the future.