News for hackers. Stuff that matters.
Re:Show HN: Koda, a typesafe functional toolkit for Python by pizza on Monday February 07, 2022 @12:15PM (#30247812)
Nice. One question I have is does the compose operator preserve error messages, allow you to pinpoint which function raised an exception etc? That's the one issue I have w/ the `pipe` function from dry-python/returns; if you build a complex pipeline, the errors are somewhat inscrutable.
Re:Show HN: Koda, a typesafe functional toolkit for Python by keithasaurus on Monday February 07, 2022 @12:29PM (#30248028)
So far I've been able to follow them. If you `raise` an exception during one of the functions that's used in a compose the traceback will mention the function that failed (I'm looking in 3.9 at the moment).
Re:Show HN: Koda, a typesafe functional toolkit for Python by hackandtrip on Monday February 07, 2022 @01:37PM (#30249045)
Can't you 'compose' together the various errors inside the `Failure` and inspect it at the end of the pipe?