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

Generate structs that wrap bare instances #60

Open
epatters opened this issue May 17, 2023 · 0 comments
Open

Generate structs that wrap bare instances #60

epatters opened this issue May 17, 2023 · 0 comments

Comments

@epatters
Copy link
Member

epatters commented May 17, 2023

In Gatlab, we are taking a "bare values" (#29) first approach to instances of theories. However, it is also often convenient to have wrapper structs that capture the instance, enabling the use of multiple dispatch without auxiliary arguments. Such wrapper structs are frequently in Catlab (#57).

Given a bare-values instance, It should be possible to automatically generate a struct and associated methods for that instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant