That's interesting.
I ran this against a quoted Clojure fn of mine and received 92.

I'm curious (general Clojure question) about your use of the quoted
form. The Clojure docs state that this results in an unevaluated form,
but I had trouble finding more details on this. F.E. I'd like to run
count-nodes against a compiled fn that I've previously defined, but I
could not get an existing fn into quoted form - and (count-nodes a-fn)
always returns 1. Is using a macro the only way to get an expression's
unevaluated form?

Do you (or anyone) believe some general guidelines could be gathered
from running count-nodes against all of the individual fns in a
project. F.E. a number > X(?) for a fn means you might be using an
imperative style and should be looking at breaking up the fn or
looking for ways to use map/reduce/other idiomatic Clojure fns to
simplify your code?

If yes, maybe the people working on Clojure/Maven (or other Clojure
build/package projects) would be interested in making this one of the
standard reports.

Every time I engage a company for contract work I wonder what I'm in
for ( the same goes when I dive in to another open source project). I
think it's possible that viewing this metric by fn and by file would
give some insight.




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to