3 ms·
If working with emacs, clj-refactor in CIDER can do renaming of symbols. Of course, renaming symbols in Clojure is not such a big requirement as in Java IDE, b
by huahaiy 11y ago
If working with emacs, clj-refactor in CIDER can do renaming of symbols.
Of course, renaming symbols in Clojure is not such a big requirement as in Java IDE, because most of the things are isolated within a single function in Clojure. Consequently, renaming symbols is just a convenience feature, not a must-have feature for Clojure development.
- _pmf_ 11y ago> because most of the things are isolated within a single function in Clojure I've seen a lot of Clojure code where keywords have project wide semantics.
- huahaiy 11y agoIf you mean keywords by those used in maps, like {:some-key 1 :another-key 2}, yes, they have project wide semantics. However, these are just data. Changing the name of a key in data is just a matter of global search/replacement. A fundamental point in the philosophy of Clojure is the emphasis on raw data. This is actually the reason why we love the language, because it lets us work directly with data, instead of dealing with language related complexity, such as API, type, syntax, etc. The Clojure community only realizes this advantage a couple of years ago. This Rich Hickey's talk in JavaOne gives a flavor of this idea: https://www.youtube.com/watch?v=VSdnJDO-xdg https://www.youtube.com/watch?v=VSdnJDO-xdg