3 ms·
or is it obviously executing `something()` followed by an anonymous scope with a less-common indentation pattern, e.g. equivalent to var x = 1; something()
by Groxx 6y ago
or is it obviously executing `something()` followed by an anonymous scope with a less-common indentation pattern, e.g. equivalent to
var x = 1;
something();
{
var x = 2;
}
// x is now 1 again, as the scope
// containing the new variable x=2 is gone
something();
or, as mentioned in another comment, is it passing an execution block to `something()`? (I didn't mention that in my original since it's a bit less common of a language feature, but it's valid too)
enforced semicolons and/or significant whitespace/newlines can resolve this in some cases, but it of course depends on the language. and diverging too far from common langs has its own downsides too, especially where you're changing the interpretation of what are already common patterns.