clojure - Several ways to call "use"? -


what's difference between (use 'korma.db) , (:use korma.db)?

functionally seem same thing, 1 looks it's function call , other dereferencing map? why 2 ways of writing , how end doing same thing?

thanks much!

the (:use ...) form directive passed ns, not dereference of map. ns macro, things in ns form not evaluated in standard way. :use directive in ns form causes ns invoke (use ...).

since "use" has effect on evaluations done in ns invoke it, makes sense specify in context of declaring namespace rather randomly invoking somewhere else in ones code.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -