I realized that I just can’t ever remember the different proc types
behaviours. So I wrote a script to check them.
proc: Avoid this, since its behaviour differs across commonly used
lambda: Use this if you want it to behave like a method.
Proc.new: Use this if you want it to behave like a block.
Is that reasonable? Any thoughts or insights? Do you have a different
rules or a more elegant conclusion?
Is that reasonable? Any thoughts or insights? Do you have a different set
of rules or a more elegant conclusion?
I’ve added the note that → is a synonym for lambda in 1.9.
Several people have posted links to articles, I appreciate that you are
interested enough to post these, but it’s unclear what you want me to
out of them, and they tend to be very long. It would help me, and
other readers if you could summarize whether they agree with / disagree
/ expound on / or amend my conclusion, and maybe a sentence explaining
specifically we should should be paying attention to, if we invest the
or so it would take to read the article.