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

Disallow the creation of arbitrary Form structs #5

Open
dodomorandi opened this issue May 16, 2022 · 0 comments
Open

Disallow the creation of arbitrary Form structs #5

dodomorandi opened this issue May 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@dodomorandi
Copy link
Contributor

The capabilities of Form depend on the context in which it is used. At the current state there is no check to avoid invalid states. There are two main ways to solve the issue:

  • Perform a runtime check on the Thing to validate the coherency
  • Check the invariants at compile-time

It is not necessary to have only one of the two solutions, probably the best approach is to rely on compile-time checks when possible and perform all the remaining ones at runtime.

@lu-zero lu-zero added the enhancement New feature or request label May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants