Gra
Gra

Reputation: 1594

Clojure(Script) empty namespace

For an embedded DSL I'd like to remove all the core functions and require the ones I need one by one. Is it possible and how?

Upvotes: 1

Views: 108

Answers (1)

Taylor Wood
Taylor Wood

Reputation: 16194

You can use the :refer-clojure directive in your ns declaration to specify only the core functions you need:

(ns my-namespace
  (:refer-clojure :only [defn]))

Upvotes: 5

Related Questions