3 ms·
Bieng able to declare variables after statements in a function is huge, letting you make them const as needed. Also declaring the index variable in a for loop
by hak8or 6y ago
Bieng able to declare variables after statements in a function is huge, letting you make them const as needed.
Also declaring the index variable in a for loop like for(int i =0; i < 10; i++) is extremely helpful.
Those two alone are extremely beneficial.
- Leherenn 6y agoTrue, they are however often available as part of compiler extensions.