Fork me on GitHub
#tools-deps
<
2021-11-26
>
Chase20:11:47

I've found I need to use (defn foo [& args]...) when evoking a function with clj -X core/foo , even if I don't intend on that function taking any args, or else I get a wrong number of args passed in error. Should I approach this in a different way?

Chase20:11:06

I'm mostly using that functionality when I want to test side effect stuff like user input. Should I be approaching that differently too you think? That's the only time I feel the jvm startup pain

borkdude20:11:30

if it's solely for testing, you can also do -M -e "((requiring-resolve 'core/foo))"

vlaaad20:11:13

@chase-lambert -X always provides exactly one argument (a map)

vlaaad20:11:11

if you want to test stuff, just use REPL, why do it through cli...