kronusaturn / lw2-viewer

An alternative frontend for LessWrong 2.0
https://www.greaterwrong.com/
MIT License
64 stars 6 forks source link

UIOP:DEFINE-PACKAGE :UNINTERN #35

Closed phoe closed 3 years ago

phoe commented 3 years ago

https://github.com/kronusaturn/lw2-viewer/blob/6542da6d87fc0d7a4bba8dfe888dd63a9d4fbfd8/src/backend-modules.lisp#L29

I've seen you use the :unintern option of uiop:define-package several times across lw2-viewer - what are its effects on the code? Why are they there? I'm curious because I'm figuring out the practical use cases of :unintern and your code is what came up on GitHub's search.

kronusaturn commented 3 years ago

I use it to remove symbols that were used in previous versions of the code, so they don't stay around when a new version is loaded in the running server process. Mainly to prevent confusion when using apropos, and for aesthetic tidiness.

phoe commented 3 years ago

OK - thanks for the response!