
16 Sep
2020
16 Sep
'20
4:55 p.m.
On Wed, 16 Sep 2020, MarLinn wrote:
But I agree that explicit exports are flawed, because the vast majority of "stuff" is usually exported. A better way might be to export everything except explicitly hidden stuff. That's not possible right now (I think), but imagine syntax like this:
module Foo (..) hiding ( bar, baz ) where
or
module Foo (module Foo hiding ( bar, baz )) where
In Oberon you do not specify an export list, instead you mark exported identifiers with a star. This way you avoid duplication of identifiers in the export list and the identifier order is always the order of definitions in the module.