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

Reduce surface & size of Cardinality #481

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

nitishr
Copy link
Contributor

@nitishr nitishr commented Mar 17, 2020

and simplify cardinality setting methods of Expectation by delegating to times wherever possible

Closes #476

@nitishr nitishr changed the title Reduce internal API surface of Cardinality Reduce surface & size of Cardinality Mar 17, 2020
This reverts commit 9d0d37a. 'times'
expresses the responsibility of this method better, but had to be
renamed earlier due to the introduction of a public method with the same
name. That method is now gone, so we can revert to the original name.
By translating all other cardinality methods to the times method, we
clarify both that all the other methods are merely syntactic sugar, and
that they all set the lower and upper limits to the number of calls.

Closes freerange#476
@floehopper floehopper changed the base branch from master to main July 24, 2020 16:38
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

Successfully merging this pull request may close these issues.

Documentation: Calls to cardinality methods on an Expectation override all previous calls
1 participant