Fork me on GitHub

@neurogoo CIDER does do that, in that when you create a new clj/s file from CIDER it’ll have the namespace declaration at the top. But honestly, ns declaration is so low-ceremony that I wouldn’t really care at all if that CIDER feature disappeared. I’d start by just putting your files in src/myprojectname, and then your ns declaration is just (ns myprojectname.filename-without-suffix) eg file src/foo/bar.clj would have (ns


There’s not an enforced 1-to-1 relationship between files and namespaces, but 99+% of the time you’ll find that it’s one-file/one-namespace.


Unless that feature is in the newest cider, I'm pretty sure that's actually clj-refactor


@madstap that may be. I’ve always had both together, so I’ve never noticed what’s part of which.


Yeah, I noticed it the other day when clj-refactor refused to work on my machine


Thanks, I will try that clj-refactor


@eggsyntax Are you sure about the 1:1 relationship not being valid? I thought that when you did a require, clojure looked for the file corresponding to the namespace on the classpath?

Alex Miller (Clojure team)12:10:12

It does but you can load other files in the context of that namespace

Alex Miller (Clojure team)12:10:01

clojure.core is split up over a bunch of files

Alex Miller (Clojure team)12:10:20

You can also create multiple namespaces within one file

Alex Miller (Clojure team)12:10:07

But both of those are uncommon


@chokheli Hey dude. 🙂 I’m college-age too. I think a channel just got started up for Python in here. Apparently Clojure can interop with Python via Jython (Python for the JVM). I’d be super down to work with you to try and create wrappers for TensorFlow and all the other great machine learning / data-analysis Python libraries. I’ll definitely be needing to use those soon for a cool project of mine. 🙂


does (keys . . . ) preserver order?


It does not present the keys in insertion order


It does present the keys in a reliable order, for a given map


@alexmiller I don't see where it's split up? Or are you referring to namespaces like Basically — can you give me an example, because I don't understand and it sounds useful 😛


Sorry, I found it.

Alex Miller (Clojure team)19:10:44

Just grep for load in there - you will see that a bunch of additional files are loaded


I hadn't considered this as a option for this, interesting!