sometimes I see code like the following without actually knowing the meaning of it:
void myFunc() {
MyClass a = new MyClass();
{
if (a.b == null) // doSomething
}
}
I really like this kind of code-sorting and capsulation (not only because you may collapse the whole block at once if you won´t read its content), but I wonder if it has any syntactic meaning additional to just the optical indentation. Ofc. I know that like in every code-block any variable declared within the block is only usable there, but is there any more. There are also object-initializers but as those concern to an actual instance of a class the above is a totally independent block.