- User Since
- Mar 11 2021, 8:16 AM (8 w, 3 d)
Mar 19 2021
This is something I have been doing for over 20 years now. Not sure when I initially picked it up but I find a space before the ;'s in a C for loop improves readability. It more clearly differentiates the different parts. I beleive the space before the colon in C++ range-based loops is based on the same readability improvement.
Mar 16 2021
Mar 15 2021
One more issue with the test. Made a mistake with whether there is a space before the colon.
Fixed a typo
Updated change log and added a test to cover range based for with initializer.