Skip to content
Eliminate hidden exceptions via railway-oriented programming (sps26) episode artwork

Oct 22, 2026 33 min

Eliminate hidden exceptions via railway-oriented programming (sps26)

from Chaos Computer Club - recent audio-only feed Hosted by Christoph Gietl

Python’s dynamic nature makes it easy to miss hidden exceptions and implicit control flow, leading to bugs that static type checkers such as `mypy`, `pyrefly`, `pyright`, or `ty` cannot catch. Railway-oriented programming (ROP) addresses this by making all domain outcomes explicit in function signatures, using a `Result` type instead of exceptions. This talk introduces ROP in Python, showing how it enables type-safe control flow that static analyzers can verify. We will compare three open-source libraries: `Expression` by Dag Brattli, `returns` by Nikita Sobolev (Drylabs), and `trcks` by the speaker, each offering different approaches to ROP. Special focus will be given to `trcks`, which uniquely supports both object-oriented (method chaining) and functional (pipeline composition) styles while being designed for maximum type safety and interoperability. Attendees will learn when and how to use ROP in both synchronous and asynchronous code, how to choose the right library, and when ROP is not the best fit. By the end, you will know how to write Python code that is safer, more predictable, and easier to maintain without sacrificing expressiveness. Attendees should be familiar with type annotations and static type checking in Python. A basic understanding of object-oriented programming and of functional programming can be helpful but is not strictly required. about this event: https://talks.python-summit.ch/swiss-python-summit-2026/talk/XNHXFL/

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Eliminate hidden exceptions via railway-oriented programming (sps26)

0:00 33:35

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Chaos Computer Club - recent audio-only feed?

This episode is 33 minutes long.

When was this Chaos Computer Club - recent audio-only feed episode published?

This episode was published on October 22, 2026.

Can I download this Chaos Computer Club - recent audio-only feed episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.