Do we really need a new “code container” type for this? Could modules not serve the purpose by localizing require. e.g.
module Foo
require “bar”
…
end
So everything bar.rb loads in safely within Foo?