On Mon, Oct 26, 2009 at 6:09 PM, kyle smith <the1physic...@gmail.com> wrote:

> Rather than the number of nodes in a tree, I think a better metric
> would be the number of edges in a graph.  Variables that are
> referenced on many different lines should get double counted.  I think
> this would explain why imperative spaghetti code is so complex.  On
> the other hand,  I suspect functional code is generally more tree-like.


A variable already gets counted everywhere the symbol for it appears in the
code's AST.

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