Добавить
Уведомления

Elixir Episode 11: alias, require, import, use and nested modules

In this video training, you'll learn how to use alias, require, import, use and nested modules in Elixir. In order to facilitate software reuse, Elixir provides three directives (alias, require and import) plus a macro called use summarized below: # Alias the module so it can be called as Bar instead of Foo.Bar alias Foo.Bar, as: Bar # Require the module in order to use its macros require Foo # Import functions from Foo so they can be called without the `Foo.` prefix import Foo # Invokes the custom code defined in Foo as an extension point use Foo If you need professional help, you can email me at umahmood@gmail.com Facebook :: https://web.facebook.com/usman.mahmood.92167 Linkedin : https://www.linkedin.com/in/umahmood/

12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

In this video training, you'll learn how to use alias, require, import, use and nested modules in Elixir. In order to facilitate software reuse, Elixir provides three directives (alias, require and import) plus a macro called use summarized below: # Alias the module so it can be called as Bar instead of Foo.Bar alias Foo.Bar, as: Bar # Require the module in order to use its macros require Foo # Import functions from Foo so they can be called without the `Foo.` prefix import Foo # Invokes the custom code defined in Foo as an extension point use Foo If you need professional help, you can email me at umahmood@gmail.com Facebook :: https://web.facebook.com/usman.mahmood.92167 Linkedin : https://www.linkedin.com/in/umahmood/

, чтобы оставлять комментарии