soabase / soabase-halva

Idiomatic Scala ... in Java
https://github.com/soabase/soabase-halva/blob/master/README.md
Apache License 2.0
81 stars 5 forks source link

Consider renaming or other API changes for when() #8

Closed Randgalt closed 8 years ago

Randgalt commented 8 years ago

From @martint

One thing that's not clear is that there seems to be some relationship between the "when"s and the >"and"s, but the linear chaining structure doesn't capture it. E.g., if I'm reading it correctly, the:

.when(() -> author.val().name().startsWith("Ayn")) .and(year, () -> author.val().years())

executes nested within each:

.>and(author, () -> book.val().authors())

Randgalt commented 8 years ago

fixed