shapesecurity / shape-functional-java

add some FP familiarity to a Java project
Apache License 2.0
8 stars 7 forks source link

Remove Effect #41

Closed bakkot closed 7 years ago

bakkot commented 7 years ago

Fixes #34, mostly.

This PR removes Effect in preference for Consumer, but leaves Thunk around. Thunk actually does something: it caches its result. It is also not a functional interface, so there's no conflict; everything which might have accepted a Thunk instead accepts a Supplier.

Nothing in this library still uses Thunk, but since it seems like a useful thing to exist, I haven't deleted it.

bakkot commented 7 years ago

Also renames foreach to forEach, leaving deprecated aliasing methods around.

This work was begun at some point in the past, but evidently never finished.