> To me, marking a variable as global in a large number of functions is > a code smell that indicates that you're probably overusing globals. > Lua is an example of a language that takes the opposite approach: in > Lua, every variable is global unless you explicitly mark it as local. > Lua is a fine language overall, but that is one of my pet peeves with
I had some experience programming in Lua and I'd say - that language is bad example to follow. Indexes start with 1 (I am not kidding) Single data type ("table") which could suddenly flip from "list" to "map" because you deleted one item. Has objects but has no classes. and so on... Vladimir http://itunes.apple.com/us/app/python-code-samples/id1025613117 -- https://mail.python.org/mailman/listinfo/python-list