elixir-style-guide icon indicating copy to clipboard operation
elixir-style-guide copied to clipboard

Add example for leading underscore in function names

Open sorliem opened this issue 5 years ago • 2 comments

Add an example for leading underscores in function names. I've seen examples of python-like leading underscores in function names to denote a function is private to the module.

sorliem avatar Sep 11 '20 22:09 sorliem

I would go with Bad: def _parse_contents(data)

Good:

@doc false
def parse_contents(data)

eksperimental avatar Sep 11 '20 23:09 eksperimental

Updated. How does that look?

sorliem avatar Sep 14 '20 17:09 sorliem