I noticed spacemacs puts things like autosave and backup files in
~/.emacs.d/.cache/ and I'd like to use that idea in my own setup.
(defconst spacemacs-cache-directory (expand-file-name (concat user-emacs-directory ".cache/"))
I considered adding this to my own init.el,
(defconst cache-directory (expand-file-name (concat user-emacs-directory ".cache/"))
but without the "spacemacs" prefix, "cache-directory" seems like a dangerously generic name, likely to collide with something at some point.
I'm still new to emacs, and I don't know enough about scoping in elisp to say whether this is a serious concern. Should I name it something silly like "ivan-cache-directory", or is there a best practice people stick to? Or is this not actually worth worrying about?