Hacker News new | past | comments | ask | show | jobs | submit login

Eh, I've heard this a few times; I thought once from Francesc Campoy, but maybe I'm wrong? I don't feel strongly about them, I was just repeating what I heard.

The rationale was that they can make code hard to follow, especially when one of the returns is err and you have other errs in your function.

Lastly, to be clear, I didn't mean to imply they were frowned upon in all cases; only that you should prefer normal returns unless you have a compelling reason.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: