-
-
Notifications
You must be signed in to change notification settings - Fork 833
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedContributions encouragedContributions encouragedpriority:medium
Description
Empty modules are "valid" Gleam in the sense they won't block compilation, but they are useless for a package to publish because they don't do anything! I can see two scenarios for why a package might have been published with empty modules:
- to stub out the package's API before it is complete.
- as a mistake
The first scenario is confusing for users and will waste folks' time as they work out what parts of the API actually exist. The second scenario is an unfortunate accident that the compiler could have prevented!
I propose Gleam refuses to publish any package if it contains empty modules, and emits warnings when building a project with empty modules.
GearsDatapacks, karamfd, enkerewpo, lpil, GiregL and 1 more
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedContributions encouragedContributions encouragedpriority:medium