You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's document how to treat multiline vs single-line blocks wrt using do ... end or { ... }. Also, let's decide whether to prefer proc, Proc.new, lambda, or -> (I know that procs and lambdas aren't the same, but often it doesn't matter either way, and I want those cases to be consistent). Personally, I prefer proc and using { ... } for single-line and do ... end for multi-line blocks.
The text was updated successfully, but these errors were encountered:
Let's document how to treat multiline vs single-line blocks wrt using
do ... end
or{ ... }
. Also, let's decide whether to preferproc
,Proc.new
,lambda
, or->
(I know that procs and lambdas aren't the same, but often it doesn't matter either way, and I want those cases to be consistent). Personally, I preferproc
and using{ ... }
for single-line anddo ... end
for multi-line blocks.The text was updated successfully, but these errors were encountered: