Skip to content

Add example for leading underscore in function names#59

Open
sorliem wants to merge 2 commits intolexmag:masterfrom
sorliem:master
Open

Add example for leading underscore in function names#59
sorliem wants to merge 2 commits intolexmag:masterfrom
sorliem:master

Conversation

@sorliem
Copy link
Copy Markdown

@sorliem sorliem commented Sep 11, 2020

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.

@eksperimental
Copy link
Copy Markdown

I would go with
Bad: def _parse_contents(data)

Good:

@doc false
def parse_contents(data)

@sorliem
Copy link
Copy Markdown
Author

sorliem commented Sep 14, 2020

Updated. How does that look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants