Skip to content

[reanalyze] rename @raises to @throws #7680

Closed

Description

@tx46

to better align with rescript's new terminology throw (raise being deprecated), the same should be done for annotations. rename @raises to @throws and deprecate @raises

Activity

  1. nojaf commented on Jul 20, 2025

    @nojaf
    Collaborator

    @tsnobip, didn't you do this while renaming raise to throw?

  2. added this to the v12.1 milestone on Jul 24, 2025
  3. added theissue type on Jul 24, 2025
  4. tsnobip commented on Jul 25, 2025

    @tsnobip
    Member

    @nojaf nope I didn't and it'd indeed makes sense, good catch @tx46 !
    I'm not sure how we can deprecate an annotation, but adding a new one and documenting it primarily would make sense, we could then stop supporting the @raises in a few versions.

  5. modified the milestones: v12.1, v13 on Jan 13, 2026
  6. cknitt commented on Oct 19, 2026

    @cknitt
    Member

    Done in #7932: reanalyze now accepts @throws (as well as @throw, @raises and @raise) and suggests @throws in its annotations. Closing.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Kr4cjoUi2f5VpMvE6wT9bo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions