You must log in or register to comment.
This says when it’s ok to use them and why it should be limited
Personally, I don’t like them. Makes things awkward to read imo
Yeah, I tend to agree, naked returns are hard to read and they don’t really add much in terms of value.
I avoid them in my code.
You can usually restructure your code to avoid them and would suggest to do so where possible. In the same vein as GOTO being bad practice. It’s simpler being able to follow a function’s flow from top to bottom.