[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Spaghetti, macaroni or ravioli?
- From: Frank Kastenholz <fkastenholz@...>
- Date: Wed, 16 Aug 2017 06:17:43 -0400
Hi
The 2 primary rules for indentation that I use are
1 follow whatever the style is that already exists as
2 always indent the same way
This reduces the amount of interpretation and thinking needed by the next person to read the code
So I would always indent as:
> if condition then
> call_my_routine()
> else
> return
> end
And, as was suggested, I'd probably recast as
if ~condition then
return
end
call_my_routine()
Frank