1535.md

February 3, 2022 ยท View on GitHub

Please note that this also avoids possible confusion in statements of the form:

if (isActive) if (isVisible) Foo(); else Bar(); // which 'if' goes with the 'else'?

// The right way:
if (isActive)
{
	if (isVisible)
	{
		Foo();
	}
	else
	{
		Bar();
	}
}