Am I the only person who doesn't really like "returning"?
a) it's no fewer lines & no fewer tokens
b) rather than looking at the bottom of the function for the return value, you now have to scan back to the top
I think this suggestion of using 'tap' in this way is awful. Use 'tap' in the way that the name suggests: to tap into the middle of a string of code, generally temporarily, generally for debugging.
You're not the only person. I'm the author of this post and I'm not even sure I like returning() :)
I'm mostly pointing out the similarity for the sake of discussion, and as it seems to be playing out in the comments, using this approach is a bad idea.
Maybe that'll serve as a lesson to those who are tempted to think as I did.
a) it's no fewer lines & no fewer tokens b) rather than looking at the bottom of the function for the return value, you now have to scan back to the top
I think this suggestion of using 'tap' in this way is awful. Use 'tap' in the way that the name suggests: to tap into the middle of a string of code, generally temporarily, generally for debugging.