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

rescript: record mode #385

Open
cannorin opened this issue Feb 27, 2024 · 0 comments
Open

rescript: record mode #385

cannorin opened this issue Feb 27, 2024 · 0 comments
Labels
enhancement New feature or request rescript For `ReScript` target

Comments

@cannorin
Copy link
Member

ts2ocaml currently uses abstract types (intf<'tags>) to represent TS classes and interfaces, but an idiomatic ReScript binding would use record types.

In general, record types are insufficient for binding to TS classes (since records cannot have overloaded methods). But library authors would want to have them generated as record types anyway to avoid boilerplate works.

@cannorin cannorin added enhancement New feature or request rescript For `ReScript` target labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rescript For `ReScript` target
Projects
None yet
Development

No branches or pull requests

1 participant