Re: Basic usage of namespaces

2014-12-24 Thread Ashton Kemerling
(use 'myapp.other) is the same as require with a ":refer all" from a users perspective, but it's fallen out of favor for :as and :referring individual names. --Ashton Sent from my iPhone > On Dec 24, 2014, at 7:37 AM, Fluid Dynamics wrote: > >> On Wednesday, December 24, 2014 5:14:01 AM UTC

Re: Basic usage of namespaces

2014-12-24 Thread Fluid Dynamics
On Wednesday, December 24, 2014 5:14:01 AM UTC-5, Michael Klishin wrote: > > On 24 December 2014 at 12:59:11, Eric Le Goff (ele...@gmail.com > ) wrote: > > Now my newbie question : > > Is there a simpler way to avoid the redundant 2 lines > > (require 'myapp.other) > > (refer 'myapp.other) >

Re: Basic usage of namespaces

2014-12-24 Thread Michael Klishin
On 24 December 2014 at 12:59:11, Eric Le Goff (eleg...@gmail.com) wrote: > Now my newbie question : > Is there a simpler way to avoid the redundant 2 lines > (require 'myapp.other) > (refer 'myapp.other) (require '[myapp.other :refer [foo]]) See  http://clojure-doc.org/articles/language/namespace

Basic usage of namespaces

2014-12-24 Thread Eric Le Goff
While writing my first clojure application, I guess I am facing beginner issue with namespacing : I defined a function in a dedicated namespace i.e (ns myapp.other) (defn foo [x] (+x 42)) and try to use the foo from a different namespace It seems *(require 'myapp.other) ;*; is not enough to ca