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

Fix arity error wording for a keyword #148

Closed
elenam opened this issue Jul 4, 2022 · 1 comment
Closed

Fix arity error wording for a keyword #148

elenam opened this issue Jul 4, 2022 · 1 comment
Assignees
Labels
small bug Something isn't working but not fatal

Comments

@elenam
Copy link

elenam commented Jul 4, 2022

It looks like in Clojure 1.11 there is no longer a special case for arity exception on a keyword:

babel.middleware=> (:a 1 2 3 4)
The function :a cannot be called with four arguments.

In Clojure interactive session on line 1.
Call sequence:
[Clojure interactive session (repl)]

babel.middleware=> *e
#error {
 :cause "Wrong number of args (4) passed to: :a"
 :via
 [{:type clojure.lang.ArityException
   :message "Wrong number of args (4) passed to: :a"
   :at [clojure.lang.Keyword throwArity "Keyword.java" 108]}]

Add a special case for a function that's a keyword.

@elenam elenam added the small bug Something isn't working but not fatal label Jul 4, 2022
@elenam elenam self-assigned this Jul 4, 2022
@stanislowskij
Copy link
Collaborator

This now corresponds to Clojure-Intro-Course/babel#58 in the migration repository.

@stanislowskij stanislowskij closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small bug Something isn't working but not fatal
Projects
None yet
Development

No branches or pull requests

2 participants