DEV Community

Discussion on: Code Tip: Avoid unnecessary else statements

Collapse
 
georgehanson profile image
George Hanson

It's PHP.

It depends on the developer. I don't think early returns are much of an issue personally, depending on the use case. If there is an error, I would expect an exception to be thrown instead.