If I'm understanding you right, "C-like-syntax" languages generally allow this:
function big() {
let x,y,z;
{
// First bit
let localToThisSection = 42;
...
}
{
// Second bit
...
}
}