Hello. Is (:require ...) better than (:use [... :only (...)])?
Though I've never worked on "large Clojure program", sometimes I want to know something like "namespaces using the function foo". When I move functions to better place, when I add a new arity and search somewhere suitable with new one, when I mark something "duplicated", ... With :require, I grep "awesome/foo", but there may be "a/foo", or, if there required two a*, "aw/foo". I also can grep :require clause, but :require clause don't tell me whether foo is used or not. With :use+:only, I grep a pattern like "awesome :only \(.*\s?foo\s?.*\)" (actually I may consider multi-lines). Of course there may be (:use [another.awesome :only (foo)]), but I read around the matched line and then I know the answer. Moreover, when I open other's code, on top of screen :require tells me "something in awesome is used. In order to know what is used, read below." In contrast, :use+:only tells me "foo in awesome is used." Any thoughts? Thanks. -- Name: OGINO Masanori (荻野 雅紀) E-mail: masanori.og...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en