Skip to content

Prefix variables and functions #3

@yilinwei

Description

@yilinwei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions