Functions vs. patterns
I thought about describing the context in which I faced this problem, but I figured it is general enough and clear enough to pose it as it is.
What is the difference between the two following definitions:
Under what circumstances will the two behave differently? Is any of them preferable as a general practice?