DEV Community

loading...

Discussion on: Write better code and be a better programmer by NEVER USING ELSE statements

Collapse
2xw profile image
Wim Wouters

I was not aware of it until I read your article: I use all the techniques you bring forward. So I have no other option than to agree 100% with your point of view on ELSE :)
To me it feels natural to invert the IF statements and exit early for example.