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

try requires a catch clause #240

Closed
frenchy64 opened this issue Feb 6, 2025 · 1 comment · Fixed by #258
Closed

try requires a catch clause #240

frenchy64 opened this issue Feb 6, 2025 · 1 comment · Fixed by #258
Labels

Comments

@frenchy64
Copy link
Contributor

frenchy64 commented Feb 6, 2025

;; jank
clojure.core=> (try (finally *ns*))
Read error (0 - 0): each try must have a catch clause

Clojure 1.12.0
user=> (try (finally 1))
nil
user=> (try)
nil
@jeaye
Copy link
Member

jeaye commented Feb 6, 2025

This is intentional. In C++, a try does require a catch.

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

Successfully merging a pull request may close this issue.

2 participants