Closed tmarble closed 7 years ago
What are the consequences of this change?
@pmdoll the consequence is that it should be much easier to change the dbg-println level on the REPL, like this: pamela.cli> (pamela.utils/set-dbg-println-level 6)
That function will mutate the atom held in the var and the macro that uses it will deref the atom instead of using the value of the var itself.
Seems like a trivial change.
Sure, I'll make this change.
In the interim, it's easy to change the value in a Cider buffer (for parser.clj), and do C-M-X (which is actually far less typing than calling (pamela.utils/set-dbg-println-level 6)
)
“For my ally is the Force [emacs and Cider], and a powerful ally it is.”
Currently changing the
*dbg-println-level*
requires changing namespaces:It would be nice if this were defined as an atom (no longer requires being dynamic) that could be mutated from any namespace with a function like
(pamela.utils/set-dbg-println-level 6)
.