Re: Aha! moments



"remixer" <remixer1@xxxxxxxxx> writes:

That is the coolest part of lisp -- but once in a while I find myself
after a whole day of hacking wanting to make sure something will work
on another machine, and end up restarting lisp (and loading everything
afresh) to make sure of that (as it could be some old definition or
binding lying around in the environment). Is there an easier way than
restarting lisp to do this? One very crude thing might be to blow the
symbol table away?

I tend to have Emacs save any unsaved buffers, start a fresh Lisp, and
use asdf to load the system from scratch. Then I patch up any problems
that crop up in the running Lisp.

Sometimes I do "scratch" development; I have a small experimental
project that is contained in one file, with a defpackage/in-package at
the top followed by the code. At the REPL I work entirely within the
package. When I want to clean things out, I delete-package the package
and reload the file.

Zach
.