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

Good point on the conditions. I wanted to avoid pasting prod code I'd been working on and was trying to make an example: I generally use this for things like logging.

It's best when:

1) The logic is very specific to the situation and isn't reusable 2) Isn't important to the function's api contract.




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

Search: