Re: importing a single function in ns

2014-06-07 Thread Colin Fleming
One small thing - you need a vector around the whole ns piece: (ns foo (:use [com.foo.bar :only [baz quxx]])) But yes, this is fully supported. The recommended way of doing this since 1.4 is to use :require/:refer instead, but the effect is the same: (ns foo (:require [com.foo.bar :refer [ba

Re: importing a single function in ns

2014-06-06 Thread Reid McKenzie
(ns foo (:use com.foo.bar :only [baz quxx])) is totally supported by the ns macro. Reid On 06/07/2014 12:53 AM, Glen Rubin wrote: > My namespace currently looks like this: > > > (ns providence.core > (:gen-class) > (:use seesaw.chooser) > (:use seesaw.core) > (:use clojure.java.shell))

importing a single function in ns

2014-06-06 Thread Glen Rubin
My namespace currently looks like this: (ns providence.core (:gen-class) (:use seesaw.chooser) (:use seesaw.core) (:use clojure.java.shell)) However, I only use sh from java.shell choose-file from seesaw.chooser and alert from seesaw.core. How do I import these single functions from th