Skip to content

Rename functions ending with Exn to OrThrow #7518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DZakh
Copy link
Member

@DZakh DZakh commented May 24, 2025

No description provided.

@DZakh
Copy link
Member Author

DZakh commented May 24, 2025

Let me know what you think of the change

@DZakh
Copy link
Member Author

DZakh commented May 26, 2025

Next step is getExn->getOrThrow

@cknitt
Copy link
Member

cknitt commented May 27, 2025

@DZakh analysis tests are failing, I think you need to make some adaptation in analysis for the new function names.

@DZakh DZakh closed this May 28, 2025
@DZakh DZakh force-pushed the dz/exn-vs-or-throw branch from 8bc2cf4 to e63147f Compare May 28, 2025 09:17
@DZakh
Copy link
Member Author

DZakh commented May 28, 2025

Hm, messed up git push --force the second time already 🤔

@DZakh DZakh reopened this May 28, 2025
Comment on lines +98 to +107

Exception Analysis
StdlibTest.res:11:5-23
bigIntFromStringExn raises nothing and is annotated with redundant @raises(JsExn)

Exception Analysis
StdlibTest.res:14:5-16
jsonParseExn raises nothing and is annotated with redundant @raises(JsExn)

Analysis reported 24 issues (Exception Analysis:24)
Analysis reported 26 issues (Exception Analysis:26)
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand why it changed

@DZakh DZakh requested a review from cknitt May 28, 2025 09:28
Copy link

pkg-pr-new bot commented May 28, 2025

Open in StackBlitz

rescript

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

@rescript/darwin-arm64

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

@rescript/darwin-x64

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

@rescript/linux-arm64

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

@rescript/linux-x64

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

@rescript/win32-x64

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

commit: 063b6b3

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