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

[Le #148] Fix arity error wording for a keyword #58

Open
stanislowskij opened this issue Sep 11, 2024 · 0 comments
Open

[Le #148] Fix arity error wording for a keyword #58

stanislowskij opened this issue Sep 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request small bug Something isn't working right, but not fatal

Comments

@stanislowskij
Copy link
Collaborator

⚠️ Imported from legacy repository. This issue is a duplicate of Clojure-Intro-Course/babel-legacy#148.

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.

@stanislowskij stanislowskij added the small bug Something isn't working right, but not fatal label Sep 11, 2024
@stanislowskij stanislowskij added the enhancement New feature or request label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request small bug Something isn't working right, but not fatal
Projects
None yet
Development

No branches or pull requests

2 participants