Nightcode
Nightcode copied to clipboard
Passing a function defined with incorrect parameters breaks InstaREPL for all expressions
Hi Zach.
InstaREPL shows an error for most incorrect expressions, while still evaluating other expressions. Awesome.
(map (fn [& _] true) #{1 2 3})
(filter #(do [%] true) [:anything :here]) ;using (do [%] ...) to make the function signature have a parameter. If you know of a more readable/obvious way, write it in a comment, please.
However, defining those functions with in incorrect number of parameters makes InstaREPL in Nightcode 2.6.0 fail for all other expressions (in the current file), too:
(map (fn [] true) #{1 2 3})
(filter #(do true) [:anything :here])
Could InstaREPL show errors for those incorrect function signatures, and continue evaluating the rest of the file, please?