Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why not promote the plague ? (brace|rc|alternative|modern) syntax
On Thu, Dec 12, 2024 at 7:20 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> What matters is robust code. I've been convinced that:
>
> for (( ...))
> {
> ...
> }
>
> ... is stable, but for everything else stick with do/done or then/fi.
Keep in mind that the setopt for those sans-do/done shapes is
SHORT_loops. In C-think, that means something like "cuddled" braces
-- minimal vertical whitespace. But the other thing to remember is
that a newline in shell is like a semicolon in C, and throwing in
extra statement terminators is likely to get you in trouble.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author