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

atdgen: allow empty records #400

Open
kopecs opened this issue Dec 21, 2023 · 0 comments
Open

atdgen: allow empty records #400

kopecs opened this issue Dec 21, 2023 · 0 comments

Comments

@kopecs
Copy link

kopecs commented Dec 21, 2023

It would be useful if empty records, as in

type t = {}

were accepted by atdgen and represented in OCaml as unit. One use case for this is when the record will, in the future, have fields added, but no fields are yet present. Given this is accepted by, e.g., atdpy, it would be useful if it were also accepted by other targets for uniformity.

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