Fork me on GitHub
#conjure
<
2020-12-11
>
Eugene Tyurin21:12:44

Workflow question - how do you guys manage your "scratch file" in conjure? Do you always change (ns http://abc.xyz) on the first line before evaluating code? Or is there a more elegant way?

nate22:12:22

I have a separate tree of files that all have appropriate namespaces, and I add that tree of files when I launch the repl

nate22:12:55

so for namespace app.foo.bar, I have fiddle.foo.bar with my scratch code and rich comments

nate23:12:02

and in the fiddle namespace, I either refer all from the other namespace or just qualify all my calls into it

dave01:12:29

Same idea here. I have a separate "dev" folder on the same level as "src" that usually has a scratch.clj (ns scratch) and/or a user.clj (ns user) The "dev" folder is not part of the classpath by default, I add it when needed by using a "dev" alias defined in the project's deps.edn

Olical13:12:56

You can also use :helpgrep b:conjure#context to set a buffer's namespace (context) to a specific string without putting it in the buffer itself.

👍 1
Eugene Tyurin15:12:25

Thanks @U38J3881W - that does the job!