-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Description
We have __info__/1
added to each defined module. Two issues with it:
- Nowhere in the code it documents which arguments the function supports.
- Impossible to discover those arguments at runtime.
The function has similar intent to Erlang's module_info
which is also added to each module.
I'm proposing to provide __info__/0
similar to module_info/0
that will return a list (or a keword list) of the things that can be retrieved using __info__/1
.