I can't figure out how to import all the functions of a module without having to specify the individual functions.
Erlang code is divided into modules. A module consists of a sequence of attributes and function declarations, each terminated by period (.). For a description of function declarations, see Function Declaration Syntax.
The Erlang compiler is written in Erlang and always available and can compile to either a file or a binary which can be immediately loaded into the system.
Reading from the Erlang Programming Rules:
Don't use -import, using it makes the code harder to read since you cannot directly see in what module a function is defined. Use exref (Cross Reference Tool) to find module dependencies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With