I often want to use a namespace for calculating stuff like this
FOO = 1
namespace A
x = FOO + 1
end
This is almost like a module except modules need to import names from the enclosing lexical module, which can be inconvenient. Is it possible to make a namespace where lexically prior names are accessible?