DEV Community

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

Collapse
 
gnsp profile image
Ganesh Prasad

I have been avoiding else blocks for quite some time now. But I have never been able to clearly explain the 'why'. For some reason the code felt cleaner without the else blocks. This article explains the 'why' part beautifully.