Skip to content

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

@lewang

Description

@lewang

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions