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

Remove and() from the API. #37

Merged
merged 1 commit into from
Sep 5, 2012
Merged

Remove and() from the API. #37

merged 1 commit into from
Sep 5, 2012

Conversation

cgruber
Copy link
Contributor

@cgruber cgruber commented Sep 4, 2012

Remove And and all and() and chaining from Subjects, as And is a confusing API when used with iterable verbs

List list = Arrays.asList("oofob", "oobob", "oofob")
ASSERT.in(list).thatEach(STRING).contains("oo").and().contains("ob");

This would be ambiguous as to whether the and() referred to the "that each" or the underlying collection. While it can be reasoned about, the code, as read, is not inherently obvious, containing a linguistic ambiguity in the english fluent reading.

cgruber added a commit that referenced this pull request Sep 5, 2012
Remove and() from the API.
@cgruber cgruber merged commit 6c9fd68 into google:master Sep 5, 2012
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.

1 participant