aaa ok thanks a lot! I was under the impression that #() created a (fn
[& args] ...) !
Jim
On 17/08/12 11:46, Bronsa wrote:
this is because the #() checks for arguments used inside its body to
infer its arity. in #(alert "..") you don't use any arg so it creates
a function with no argument
this is because the #() checks for arguments used inside its body to infer
its arity. in #(alert "..") you don't use any arg so it creates a function
with no argument, such as doing (fn [] ..)
Il giorno 17/ago/2012 11.50, "Jim - FooBar();" ha
scritto:
> Hi everyone,
>
> I was surprised to discov
Hi everyone,
I was surprised to discover that anonymous functions will not work in
seesaw...For example the following throws an exception (wrong number of
args):
(button :text "Undo" :listen [:action #(alert "Not implemented!")])
but if i replace the anonymous fn with (fn [e] (alert "Not
i