Yukihiro Matsumoto wrote:
> Yes, and in Ruby2.0, this will be changed to "if you see an assignment
> to a bare name, that name means a variable in the current scope", so
> that

Please englighten me:

> | def bar
> |   n = 3
> |   n # variable - make sense to me.
> | end

This make sense, but

> | def baz
> |   n # variable - Do we really need this uninitialized variable access?
> |   n = 3
> |   n 
> | end

Thank you for the explanation.

Sincerely,
Minkoo Seo