Skip to content
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

raise -> throw #7113

Open
cknitt opened this issue Oct 21, 2024 · 1 comment
Open

raise -> throw #7113

cknitt opened this issue Oct 21, 2024 · 1 comment
Milestone

Comments

@cknitt
Copy link
Member

cknitt commented Oct 21, 2024

For throwing exceptions, we have the function raise whose name was inherited from OCaml.

I would propose to rename it to throw in v12 to align it with JS.

@cknitt cknitt added this to the v12 milestone Oct 21, 2024
@cknitt cknitt moved this to Backlog in ReScript development Oct 21, 2024
@cknitt
Copy link
Member Author

cknitt commented Oct 24, 2024

Should be easy to change as it is just an external definition in Pervasives.

However, for compatibility we can keep both in parallel for now, then deprecate raise at some point and eventually remove it at a later time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant