You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2018. It is now read-only.
Flush with the knowledge that Clojure symbols can have '-' in them, I find myself creating file like this:
test-svg.clj
or worse
test-svg
However, Clojure's build system expects that a namespace such as:
(ns test-svg)
Will be built as test_svg.class
I suggest the following:
Create:
/myproj/src/views/test-svg.clj
Actually creates:
/myproj/src/views/test_svg.clj
Injects:
(ns myproj.src.views.test-svg)
Such as
3.1) Clicking on the filename in the top left corner switches to edit mode, can change filename. Auto update ns?
3.2) If a ns-declaration conflicts with the filename, the filename be changed.
For example, if I already created my file as above, and now I find I'm happy with my scribbling, I can type:
(ns myproj.src.views.test-svg)^H^H^H^H^H^H^H^H^Hsvg-view)
^S
Renames the file and builds the new class.
I know it's sugar, but I keep creating duff files. :-) Perhaps I should be the change I want to see.
The text was updated successfully, but these errors were encountered: