Erlang - Can a module name start with a capital letter?

Erlang Can a module name start with a capital letter?

+4
source share
1 answer

The module name is atom , so it should begin with a lowercase letter, unless you enclose it in single quotes. It is really possible:

%% in Foo.erl -module('Foo'). ... %% in Erlang shell 1> 'Foo':foo(). "foo" 

But absolutely terrible, so do not do this.

+17
source

Source: https://habr.com/ru/post/1332362/


All Articles