[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: duplicated local variables with same name
- From: Sean Conner <sean@...>
- Date: Mon, 15 Jun 2015 15:06:18 -0400
It was thus said that the Great Roberto Ierusalimschy once stated:
> > [It's a shame that declaring blocks that limit temporary variable
> > scope isn't more popular, perhaps the extra two lines and bonus
> > character in 'end' bothers OCD people like myself. I'm a fan of using
> > {} in C code but I admit it always looks weird.]
>
> For me the problem is not the extra two lines, but the need to ident the
> code inside the block. (Of course, for those that are not OCD, there is
> always the option of not identing that code...)
I can just highlight the code in my editor and shift the text as needed
(left or right---and my editor respects my preferred indent level).
-spc