Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

unreachable catch clause #339

@SoniEx2

Description

@SoniEx2

we would like to see an "unreachable" catch clause, that takes an exception type, or even "unreachable_all"?

jumping over an "unreachable" is a bit unwieldy today:

block $a
  block $b
    try_table (catch_all $b)
      ;; code goes here
    end
    br $a
  end
  unreachable
end

meanwhile,

try_table (unreachable_all)
  ;; code goes here
end

and implementations could make this "zero-cost" in the happy case. they could even provide more information about the error than with the catch_all approach - they could provide the full stack trace of the exception instead of the stack trace of the unreachable.

(if we could call these "checked exceptions" that would be cool too, even if they're not java-style checked exceptions)

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