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

Generated init methods should or could check that all mandatory fields in the class have been set. #24

Open
smarie opened this issue Oct 4, 2019 · 0 comments

Comments

@smarie
Copy link
Owner

smarie commented Oct 4, 2019

From #2

At the end of generated init methods, we could optionally enable validation that all mandatory fields have been set. That could be implicit or explicit. A prerequisite is to have a function able to provide this functionality on an object class (getting behind the scenes the list of fields applicable to this class).

This function could also be explicitly used by users, anywhere in their code (in an init method or elsewhere)

Note that this is not as simple as looking at the init arguments

@smarie smarie added the enhancement New feature or request label Oct 4, 2019
@smarie smarie mentioned this issue Oct 4, 2019
@smarie smarie added example use case needed and removed enhancement New feature or request labels Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant