title: What is the purpose of setting Ruby block local variables when blocks have their own scope already?
body: <p>Learning about Ruby blocks <a href="http://rubylearning.com/satishtalim/ruby_blocks.html" rel="noreferrer">here</a>. What is the point of having block local variable in this example:
  <a href="https://i.stack.imgur.com/KIUBM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KIUBM.png" alt="enter image description here"></a></p>
  
  <p>When you can just do the below instead? The <code>x</code> in the block is already going to have its own scope, which is different than the <code>x</code> that is outside the block.
  <a href="https://i.stack.imgur.com/PZ39s.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PZ39s.png" alt="enter image description here"></a></p>