sci icon indicating copy to clipboard operation
sci copied to clipboard

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

Open lewang opened this issue 1 year ago • 0 comments

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?

lewang avatar Sep 25 '24 15:09 lewang