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] support deriving annotations #39

Closed
aryx opened this issue Jun 7, 2022 · 0 comments
Closed

[atdgen] support deriving annotations #39

aryx opened this issue Jun 7, 2022 · 0 comments

Comments

@aryx
Copy link
Contributor

aryx commented Jun 7, 2022

Just like we can now annotate ATD type definitions with @DataClass annotations for Python, it would
be nice to be able to do the same for OCaml.
This would avoid having to write boilerplate code like: https://github.com/returntocorp/semgrep/blob/develop/semgrep-core/src/core/Output_from_core_util.ml

It would be nice if we could also define a default deriving for the whole file, to avoid having to repeats
those deriving for every definitions in the file (the same is true for Python).

@aryx aryx closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant