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
Normally block arguments are scoped to the block itself. For example:
v =nil
{1, 2, 3}.each { |v| }
pp v # => nil
However macro blocks do not seem to have the same behavior. This can lead to hard to debug bugs if the block param name happens to match a variable outside of the block.
{%
v =nil
{1, 2, 3}.each { |v| }
v # => 3%}
The text was updated successfully, but these errors were encountered:
Normally block arguments are scoped to the block itself. For example:
However macro blocks do not seem to have the same behavior. This can lead to hard to debug bugs if the block param name happens to match a variable outside of the block.
The text was updated successfully, but these errors were encountered: