On Tue, Jun 4, 2013 at 3:22 PM, David Burstin <[email protected]>wrote:

>
> On 4 June 2013 15:08, mike smith <[email protected]> wrote:
>
>> It isn't the flow control constructs doing it, it's the scoping.
>
>
> Agreed.
>
> It is quite clear when there is 'explicit' scoping (curly brackets), but
> there is also 'implied' scoping (eg a single line after an if). Why can't a
> useless variable be declared after an if without braces, but is ok if we
> wrap that single line in a pair of curlies?
>
> It's easier (for maintainers) to explicitly scope it with unnecessary
curlies than rely on implicit.  Our internal coding rules mandate stuff
like that :)  Which didn't really answer that question, either.



-- 
Meski

 http://courteous.ly/aAOZcv

"Going to Starbucks for coffee is like going to prison for sex. Sure,
you'll get it, but it's going to be rough" - Adam Hills

Reply via email to