Skip to content

Prefix variables and functions #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yilinwei opened this issue Feb 27, 2021 · 0 comments
Open

Prefix variables and functions #3

yilinwei opened this issue Feb 27, 2021 · 0 comments

Comments

@yilinwei
Copy link

Unlike racket, ELisp doesn't have namespaces unfortunately. The top-level is typically reserved for Emacs provided functions. Unfortunately, with a top-level global namespace you can run into issues without prefixing quite quickly.

The community has a convention of prefixing their functions with namespaces; double-dash for private functions and a single dash for public one. For example, straight might expose a function like straight--private-thingy and straight-public-thingy.

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

No branches or pull requests

1 participant