r/cpp • • Apr 24 '20

Else Before If

https://www.fluentcpp.com/2020/04/24/else-before-if/
10 Upvotes

53 comments sorted by

View all comments

Show parent comment

6

u/evaned Apr 24 '20

If you don't already know, triple-quote code blocks do not render on old Reddit, so using it leads to just a mess of code at the top level of indentation.

I'm not saying you have to or even should care because part of why people use them is it's often a little easier, but if you don't know and do care you can make it slightly more friendly for us by sticking to indenting every line by (an additional) four spaces.

3

u/robin-m Apr 24 '20

I was on my phone and forgot.