Skip to content

Decide what is exported from each Huck module #34

@jparoz

Description

@jparoz

Currently all definitions (including type constructors) are included in the returned table; as well as any foreign exports being assigned. We should either:

  1. Switch to a method of explicit exports, where nothing is included in the returned table except for things mentioned in an export (foo, bar); statement;
  2. Specify precisely what is automatically included. Particularly, are imports automatically exported? Currently no, but how do we do re-exports then?

Probably option 1 is best; we could even add a glob argument e.g. export (..); which exports everything1.

Footnotes

  1. This really just kicks the can down the road, and forces us to specify what the glob operator does. But it might be more predictable for programmers this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationfeatureAdds a new feature to the language.improvementImproves the way that an existing feature works, in a backwards-compatible way.

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions