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

Get rid of (mandatory) attributes #10

Closed
h908714124 opened this issue Sep 15, 2019 · 0 comments
Closed

Get rid of (mandatory) attributes #10

h908714124 opened this issue Sep 15, 2019 · 0 comments
Assignees

Comments

@h908714124
Copy link
Collaborator

h908714124 commented Sep 15, 2019

Attributes can always be inferred:

  1. collector absent, mapper returns optional type -> optional
  2. collector absent, mapper returns list -> repeatable
  3. collector absent, mapper returns anything else but boolean -> not optional, not repeatable (~required)
  4. collector present -> repeatable, not optional; explanation:
    1. collector doesn't return optional type -> repeatable, not optional
    2. collector returns optional -> repeatable (otherwise collector won't be used), not optional (otherwise collector won't be used)
@h908714124 h908714124 changed the title get rid of mandatory flags Get rid of (mandatory) attributes Sep 15, 2019
@h908714124 h908714124 self-assigned this Sep 20, 2019
h908714124 added a commit that referenced this issue Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant