Proposal: Private modules (general discussion)

They do. I don’t want to side-track the discussion but they do predate it as they do four distinct things. We had countless discussions to unify this and the consensus was always that, even if we can hide behind a single API (like Python), they still do distinct things, and the different things are the source of confusion, not the API (as we see similar issues in Python).

You could alias first and then do the rest using regular APIs. In this sense, maybe having a separate thing like expose would be better. Unsure. Your point is also valid.

Thanks!

To be very honest, this is extremely unlikely. This change is far com a consensus here and the Erlang community is even more conservative than us. There is also an old-ish proposal for a similar feature for Erlang as EEP 5.

1 Like