Re:Show HN: Koda, a typesafe functional toolkit for Python
by impoppy on Monday February 07, 2022 @01:59PM
(#30249358)
How is this different from match case ok case err or from if result.val?
[ Parent
| on HN ]
Re:Show HN: Koda, a typesafe functional toolkit for Python
by hackandtrip on Monday February 07, 2022 @02:34PM
(#30249826)
Well, the most basic pro is to avoid indentation and have pure function which are clear and have less assumption to take into account; if I know that my pipes always return me a result such as the one I want, and the "bad path" is discarded automatically, code is way cleaner.
Imagine a code without `if result is not None` basically!