<< Back to previous view

[TNS-28] Add other Clojure suffixes to clojure.tools.namespace.file/clojure-file? Created: 25/Nov/14  Updated: 25/Nov/14

Status: Open
Project: tools.namespace
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: Daniel Compton Assignee: Stuart Sierra
Resolution: Unresolved Votes: 0
Labels: None


 Description   

It would be handy to use clojure.tools.namespace.file's clojure-file? function for Clojure files other than vanilla JVM Clojure. I had to copy clojure-file https://github.com/jonase/kibit/blob/master/src/kibit/driver.clj#L17-L22 to be able to let it handle cljs, cljx, and other types of Clojure files. Is it possible to add other extensions to clojure-file? or make a new extended-clojure-file? (or similar name), so that people can reuse the common tooling available in clojure.tools.namespace?

I'm happy to put together a patch for whichever direction you'd prefer, making a new function, or extending the existing one (perhaps by adding a new arity with a clj-only? parameter to not break existing code).






Generated at Wed Nov 26 11:27:36 CST 2014 using JIRA 4.4#649-r158309.