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

Add a ReScript output option #410

Open
TheSpyder opened this issue May 2, 2024 · 1 comment
Open

Add a ReScript output option #410

TheSpyder opened this issue May 2, 2024 · 1 comment

Comments

@TheSpyder
Copy link

TheSpyder commented May 2, 2024

Continuing the discussion I started in #375 (comment)

ReScript 11 introduces a new "uncurried" mode, enabled by default. This mode is fundamentally incompatible with the -bs (soon to be -mel) generated output. I have forked the runtime and would like to support both curried and uncurried mode as not everyone can migrate quickly. Converting the runtime wasn't too hard, but I had to abandon the effort when I realised the atdgen output makes use of curried functions (which is totally normal in OCaml code).

Fixing this requires adding a new generated code path for ReScript. If developed hand-in-hand with a new runtime architecture it might be a good opportunity to make use of ReScript-specific features.

Related: #324

@TheSpyder
Copy link
Author

If this doesn't happen my fork is dead. ReScript 12 will make "uncurried" the only option, and that means it can no longer compile OCaml syntax.
https://forum.rescript-lang.org/t/ann-rescript-retreat-roadmap-summary-2024/5275

I'm not saying it must happen, only that I can't do it by myself.

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

No branches or pull requests

1 participant