sfermigier / awesome-functional-python

A curated list of awesome things related to functional programming in Python.
2.33k stars 136 forks source link

Result? #22

Closed kandhan-kuhan-t closed 3 years ago

kandhan-kuhan-t commented 4 years ago

I came across this Result - Rust like return types. This is very smaller in scope compared to Returns but quite nice. Belongs here?

xkortex commented 3 years ago

Seconded. Result is smaller in scope, but the interfaces are lighter, which is a win in my opinion. Returns currently calls a rather involved call stack when you map things (since it goes through the generic applicative interface) so it's a little less direct.

sfermigier commented 3 years ago

Thanks !