Hacker News new | ask | show | jobs
by transfire 395 days ago
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?
1 comments

this would be a major breaking change