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

^:sci/error hint only works for try forms with a single catch clause #931

Open
lewang opened this issue Sep 25, 2024 · 0 comments
Open

^:sci/error hint only works for try forms with a single catch clause #931

lewang opened this issue Sep 25, 2024 · 0 comments

Comments

@lewang
Copy link

lewang commented Sep 25, 2024

version

babashka versions v1.3.191 and 1.4.192

not sure internally what version of sci

platform

all

problem

We talked about it on slack .

@borkdude mentioned this is a design choice.

It's surprising that the first catch form is special only for single-block try forms, but the whole:sci/error catch hint is special, so maybe not.

It could be documented better if this is left as is.

I'm curious why a subclass of Exception can't be used here instead of this special mechanism?

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

1 participant