Skip to content

Instantly share code, notes, and snippets.

@tomsw
Created March 8, 2013 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomsw/5120775 to your computer and use it in GitHub Desktop.
Save tomsw/5120775 to your computer and use it in GitHub Desktop.
Splitting a complex clojure namespace
;;; currently I have something like this
;;; file myapi/core.clj
(ns myapi.core
"Core functions for my api")
(load "gui")
(load "forms")
;; etc.
;;; file myapi/gui.clj
;;;
;;; GUI related definitions go here
(in-ns 'myapi.core)
(defn- internal-function-x [] "blah")
(defn public-gui-function [] "blah")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment