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 schematic struct methods #77

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Unify schematic struct methods #77

merged 2 commits into from
Jan 25, 2022

Conversation

Baccata
Copy link
Contributor

@Baccata Baccata commented Jan 25, 2022

Having arity-specific primitive methods in the Schematic interface is just counter-productive, and all our schematic implementations delegate to the arity-generic one anyway.

This PR blesses that approach, and removes the need for GenericAritySchematic, since the new Schematic interface now contains a single method to handle structures.

More objectively : the arity-specific methods and the arity-generic one were non-orthogonal conceptually,
which is a bit of a smell.

Having arity-specific primitive methods in the Schematic interface is
just counter-productive, and all our schematic implementations delegate
to the arity-generic one.
@Baccata Baccata merged commit 60d297a into main Jan 25, 2022
@Baccata Baccata deleted the one-struct branch January 25, 2022 13:15
Baccata added a commit that referenced this pull request May 10, 2022
Having arity-specific primitive methods in the Schematic interface is
just counter-productive, and all our schematic implementations delegate
to the arity-generic one.

This PR blesses that approach, and removes the need for GenericAritySchematic, since the new Schematic interface now contains a single method to handle structures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants