The problem with that names are p
and private
parts, because it’s not working as same as defp
(again p
- private
- here). The point here is to have different naming like internal
and optionally short it to i
instead of private
/p
. So defmodulep
as well as defprivate
causes too many confusion. To be honest defprivate
is even worse, because it does not refers to module
in name.
defmodule Example do
defprivate Sample do
# …
end
defp sample do
# …
end
end