DEV Community

Discussion on: Else after return: yea or nay?

Collapse
 
dmerejkowsky profile image
Dimitri Merejkowsky • Edited

Interesting. Who'd knew there would be so many different ways to do the same thing ;)

Your solution is fine unless there's tons of code between if conf and result=expression(), then it becomes hard to find out there's a concept of "default value" one the first line.