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

Public properties must be forbidden #35

Closed
3 tasks done
mlhaufe opened this issue May 6, 2020 · 2 comments
Closed
3 tasks done

Public properties must be forbidden #35

mlhaufe opened this issue May 6, 2020 · 2 comments
Assignees
Labels
feature/invariant The `invariant` declaration requirement An assertion or property that must be fulfilled
Milestone

Comments

@mlhaufe
Copy link
Contributor

mlhaufe commented May 6, 2020

To guarantee invariants remain valid, public property definitions are forbidden. All interactions with a contracted class must be done through a method or accessor.

  • Create Unit Test
  • Freeze class
  • Update README
@mlhaufe mlhaufe added requirement An assertion or property that must be fulfilled azure migrated feature/invariant The `invariant` declaration labels May 6, 2020
@mlhaufe mlhaufe added this to the v0.17.0 milestone May 6, 2020
@mlhaufe mlhaufe self-assigned this May 6, 2020
@mlhaufe mlhaufe mentioned this issue May 6, 2020
16 tasks
@mlhaufe mlhaufe modified the milestones: v0.17.0, v0.18.0 Jun 3, 2020
@mlhaufe
Copy link
Contributor Author

mlhaufe commented Jun 11, 2020

Forcing the use of #private fields can be tricky due to the questionable interactions between these fields and Proxies:

@mlhaufe
Copy link
Contributor Author

mlhaufe commented Dec 10, 2020

Will this cause an issue with the usage of old in the @ensures decorator?

@mlhaufe mlhaufe added this to the v0.20.0 milestone Jan 10, 2021
@mlhaufe mlhaufe changed the title The Open/Closed principle must be enforced Public properties must be forbidden Feb 21, 2021
@mlhaufe mlhaufe closed this as completed Feb 21, 2021
@mlhaufe mlhaufe changed the title Public properties must be forbidden The Open/Closed principle must be enforced. Mar 26, 2021
@mlhaufe mlhaufe changed the title The Open/Closed principle must be enforced. Public properties must be forbidden Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/invariant The `invariant` declaration requirement An assertion or property that must be fulfilled
Projects
None yet
Development

No branches or pull requests

1 participant