Dag Brattli

Results 108 comments of Dag Brattli

Thanks for the input. [Returns]( https://github.com/dry-python/returns) looks like a great and well made library for Python. This library (Expression) tries to stay close to F# abstractions and naming, i.e by...

Yes, I think so. But you would need to craft your handlers so that you can partially apply them (when they need multiple arguments) e.g:

Maybe. The problem with currying is that the function also looses it's type. But there's perhaps another solution. Let me check ...

Well, piping only works with functions taking a single argument, so we need to turn the handlers into single argument functions. Currying or applying a function partially is not really...

Yes, would love a PR on this. Note that the code should be using `curry` or `curry_flipped` style functions instead of the nested (function returning) functions. See here for an...

Thanks, this is really nice!!

This is a great suggestion.

Ok, I think I understand the problem. Not sure if this can be solved, but I will see if there anything that can be done to fix this or workarounds....

Wow, that' really nice! Thanks for sharing! I'll see if I can add that to the docs somewhere

Yes, this project have not received any updates in a while. I've tried a few times but gotten stuck with `mypy` type checker problems. I'll give it another try ....