Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

Passing a function defined with incorrect parameters breaks InstaREPL for all expressions #241

Open
peter-lyons-kehl opened this issue Sep 4, 2018 · 0 comments

Comments

@peter-lyons-kehl
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant