Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error message when function does not exist #81

Open
camsaul opened this issue Nov 20, 2020 · 1 comment
Open

Bad error message when function does not exist #81

camsaul opened this issue Nov 20, 2020 · 1 comment

Comments

@camsaul
Copy link

camsaul commented Nov 20, 2020

clojure.core=> (xyz 3)
#Condition["Execution Error: clojure.lang.Condition cannot be cast to clojure.lang.IFn"]
@Tko1
Copy link
Member

Tko1 commented Nov 20, 2020

Hey there. This is a side effect of the fact that conditions are not fully implemented (they are coincidentally the next task though). Conditions aren't quite signalled or thrown yet, they are just literally returned and execution continues, meaning in this case

  1. xyz returns some sort of DNE condition
  2. Execution continues, there is an attempt to apply that Condition itself like a function, resulting in this overall cast-to-ifn Condition

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

No branches or pull requests

2 participants