Adding some python flavor to C++ [closed]

I am a lazy typist and in recent years I’ve developed a dislike for curly braces in C++ … and the curly braces don’t seem to do much more than taking up my precious screen space

Write your code like this, and switch to an IDE that types the braces for you. You can continue to write code that the rest of us will understand.

for (int i=0; i < 10; i++) {
    line one
    line two
}

if (something) {
    line three
    line four
} else if (something) {
    line five
    line six
    line seven
} else {
    line eight
    line nine
    line ten
}

Leave a Comment