Proposal: Private modules (general discussion)

require + alias can be done in a single require call. The difference in usage between require and requirep is literally just the extra p.

When you alias, you can alias only to a single entity, like as: Bar, never Foo.Bar. Which is why we don’t implicit alias and you need to give it the :as bit.

You can’t because of the above. Aliases need to be explicitly given because you can only alias the “last bit”, and doing for everything automatically would generate clashes.

1 Like