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

Consider renaming invariant to something like prepost #24

Closed
ErichDonGubler opened this issue Jul 21, 2017 · 0 comments
Closed

Consider renaming invariant to something like prepost #24

ErichDonGubler opened this issue Jul 21, 2017 · 0 comments
Assignees
Milestone

Comments

@ErichDonGubler
Copy link
Owner

ErichDonGubler commented Jul 21, 2017

This would be a breaking change, but a case was made by @eternaleye on Reddit that effectively argues that invariant is a misnomer if reduced to a pre- and post-condition check, instead of an exhaustive check that is rigorously maintained between all operations.

Basically, we don't want to convey an incorrect notion of what the invariant block actually does, so a different name would probably be best. Therefore, it's time to bikeshed on what the name should actually be for the transition away from invariant.

For completeness, tests and documentation will have to be updated in order to accomodate this change. It's also likely that an explanation of the divergence from the original inspiration in D will be necessary, as an educational item. :)

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