|Michał Herda 5440d52789 general update||pirms 4 gadiem|
|LICENSE||pirms 4 gadiem|
|README.md||pirms 4 gadiem|
|package.lisp||pirms 4 gadiem|
|pseudonyms.asd||pirms 4 gadiem|
|pseudonyms.lisp||pirms 4 gadiem|
I found that Lisp nicknames, as defined in CLHS, have a few problems that I will count here.
Pseudonyms, in opposition to nicknames, can be defined by the user inside one’s code, like this:
> (defpseudonym "longpackagename" "lpn")
And removed like this:
> (pmakunbound "lpn") ;; OR (pmakunbound "longpackagename")
From within the code, one can refer to a pseudonymized package this way:
longpackagename:something. This is usable both within the REPL and within usual code.
print-pseudonyms will print all pseudonyms for a given package. If not supplied a package name as an argument, it will print all pseudonyms for current package (as shown by the
*package* global variable).