Brainstorming on markup

In statically typed scenarios (closure world etc) - we can do au=
tomatic refactoring like java - where the language knows the name resolutio=
n, outer classes are closed (not dynamic etc). Let's notice not all refacto=
rings can be done automatically

=20

Closure world...

=20

=20

Name resolution rules...

=20

=20

=20

local variable name

=20

(all variables declared in closures are considered local vars)

=20

outer class static names

=20

outer class dynamic names

=20

=20

=20

Code can move into and out of closures WITHOUT any changes - irrespecti=
ve of the method implemetnation detail

=20

the compiler, IDE, shell can KNOW that the names map to (assuming the o=
uter class is static, not open/dymamic