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.
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.