>
> (defn foo
>   "I don't do a whole lot."
>   [a b]
>   ((let [y (bar(a b))]
>     (println a b "Hello, World!"))))
>
>
Now, *there* are some very suspicious parens around...

1. You're trying to call a as a function
2. Yes, you're calling bar with too few parameters, but how many? One.
3. Finally, after fixing that, you'd try to call nil as a function.  Can 
you see, why?  The '(('.


... just to be nitpicking and slightly off-topic, I know.  Sorry.

Note, that it may be a reasonable fix to your situation to change bar 
instead of foo.  This is possible by evaluating the new definition of bar 
/later/; bar could also be a dynamically bindable Var, so that when 
compiling foo, we do not know how to call bar correctly.  That's the way 
the compiler works.  A linter like eastwood[1] might report this, though.


Kind regards,
stefan

[1] https://github.com/jonase/eastwood

>  

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to