Skip to content

Add __info__/0 function to modules #1230

@alco

Description

@alco

We have __info__/1 added to each defined module. Two issues with it:

  1. Nowhere in the code it documents which arguments the function supports.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions