Sitelet https://github.com/oakes/Nightcode/issues/241
Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.
This repository was 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

Description

@peter-lyons-kehl

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions