iconScratch_Book Mornington Crescent alum, vitriol lilypond gainsboro

Programming Language

One thing I think it should have is access to parent locals. For example:
def run_game():
    Game game
def handle_player():
In this example, you would of course use a class. But often, it seems references to some quasi-global class a passed around in all sorts of calls, when, from an API point of view, it would be much nicer to just access the variable in the locals stack of the caller. And since in fact, locals are usually implemented in a stack, this would be very easy to do in machine language and also mean a performance gain.