amethyst icon indicating copy to clipboard operation
amethyst copied to clipboard

Prefix variables and functions

Open yilinwei opened this issue 4 years ago • 0 comments

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.

yilinwei avatar Feb 27 '21 08:02 yilinwei