Skip to content

Conversation

fominok
Copy link

@fominok fominok commented Aug 4, 2017

In Clojure there is a some-> macro, which acts like -> (thread-first), but without NullPointerException (or something like unsupported operand type(s) for +: 'NoneType' and 'int' for toolz). If one of forms returns nil(None), computation stops with nil as a result. This PR offers such functionality for toolz.

In order not to implement something like Maybe monad for NoneType I find some-> macro in toolz very helpful.

https://clojuredocs.org/clojure.core/some-%3E

@fominok
Copy link
Author

fominok commented Jul 1, 2019

Any thoughts after two years?

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