|
The creator of Ruby thought as you did. He later realized that implicit declaration of locals was the "single biggest design flaw" in the language. The problem lies with conflating declaration and assignment. See: http://lua-users.org/lists/lua-l/2005-08/msg00139.html