Skip to content

Replace "raise" in tests with "throw"; treat "throw" like "raise" in analysis - #7521

Merged
cknitt merged 5 commits into
rescript-lang:masterfrom
cknitt:throw-in-examples
May 26, 2025
Merged

cknitt merged 5 commits into
rescript-lang:masterfrom
cknitt:throw-in-examples

Conversation

@cknitt

@cknitt cknitt commented May 25, 2025

Copy link
Copy Markdown
Member

No description provided.

@cknitt
cknitt requested a review from cristianoc May 25, 2025 08:28
@pkg-pr-new

pkg-pr-new Bot commented May 25, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7521

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7521

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7521

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7521

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7521

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7521

commit: 119ca88

@cristianoc cristianoc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
I was wondering about whether formatting raise to throw would be useful, but then there's the risk that a function with that name gets redefined user-side, and formatting would break it.

@cknitt
cknitt merged commit c8e2639 into rescript-lang:master May 26, 2025
@cknitt
cknitt deleted the throw-in-examples branch May 26, 2025 07:50
aspeddro pushed a commit to aspeddro/rescript-compiler that referenced this pull request Oct 31, 2026
…analysis (rescript-lang#7521)

* Replace "raise" in tests with "throw"

* Treat "throw" like "raise" in analysis

* Remove raise_notrace

* Update syntax roundtrip tests

* CHANGELOG

Signed-off-by: Pedro Castro <aspeddro@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants