On Thursday, May 17, 2012 12:52:27 PM UTC-7, Armando Blancas wrote:
>
> "There's nothing wrong" is a pretty strong statement.
>
>
> LOL. Perhaps as strong as "it is definitely the wrong way to do things"? 
> Jeez.
>
> Pedantry is the wrong way to welcome newbies to this board.
>

Far from being pedantic, Alan's advice was extremely practical.  Anyone 
with moderate Clojure experience will agree that letfn or helper functions 
are actually what the OP wants, rather than def inside def.  As a newcomer, 
it's helpful to find out about these kinds of things as early as possible.

Your original advice, that "There's nothing wrong with [...] your use of 
local functions" not only fails to convey the fact that the OP's approach 
is probably not what they want -- it's also just plain wrong.  Those are 
not local functions: def always operates at top-level.


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