Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


this would be a major breaking change




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: