sanctuary-js / sanctuary

:see_no_evil: Refuge from unsafe JavaScript
https://sanctuary.js.org
MIT License
3.04k stars 94 forks source link

maybe, either: remove binary and ternary “encase” functions #618

Closed davidchambers closed 5 years ago

davidchambers commented 5 years ago

As the additions to the test suite demonstrate, the binary and ternary “encase” functions offer nothing more than what can be achieved via nested function composition.

davidchambers commented 5 years ago

This can be thought of as an optimization we missed after moving to simple currying.

Indeed. Simple currying provides numerous benefits, some of which are taking us time to discover. :)