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

Unify accessors and getSet #996

Open
anmonteiro opened this issue Dec 20, 2023 · 1 comment
Open

Unify accessors and getSet #996

anmonteiro opened this issue Dec 20, 2023 · 1 comment

Comments

@anmonteiro
Copy link
Member

No description provided.

@anmonteiro
Copy link
Member Author

anmonteiro commented Jan 6, 2024

There's a difference in how getSet and accessors are compiled, e.g. for records:

  • getSet will compile to external .. [@@mel.get]
  • accessors are compiled to record access x.foo

This might not be too much of an issue since records are currently compiled to JS objects, anyway.

The other thing that accessors derives is variants, which can be ported over to getSet without trouble.

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