Skip to content

Instantly share code, notes, and snippets.

@dazld
Created March 22, 2021 07:31
Show Gist options
  • Save dazld/fe3bfb6254b88d17e7cc2202a4bc54cf to your computer and use it in GitHub Desktop.
Save dazld/fe3bfb6254b88d17e7cc2202a4bc54cf to your computer and use it in GitHub Desktop.

https://clojure.org/guides/repl/enhancing_your_repl_workflow#writing-repl-friendly-programs

@cfleming: Tools | REPL | Sync files in REPL, as recently discussed

sync basically works out which files you’ve changed and loads them all in dependency order. Load file also does that, except only starting with the file that you’re loading (i.e. that file and all its dependencies will be loaded if modified). sync will do that for all files, even if the current file doesn’t depend on them.

(require your.main :reload-all)
clojure.tools.namespace.repl/refresh-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment