Overview
Coursera Spring Sale
40% Off Coursera Plus Annual!
Grab it
Explore the intersection of direct style programming and traditional functional programming paradigms in this 39-minute conference talk from Scala Days 2025. Discover how Scala 3's direct style, influenced by languages like Kotlin and Rust, simplifies functional programming by eliminating for-comprehension syntax on higher-kinded types while providing an imperative approach through context functions. Learn about the ongoing debate between developers who embrace this new approach and those who prefer traditional functional styles found in libraries like Cats Effect and ZIO. Follow along as the speaker demonstrates building a small effect system using only Scala 3 context functions, step by step, and witness how enhancements to the common approach can enable for-comprehension capabilities within such systems. Understand how Algebraic Effects and Handlers can be combined with Scala 3's direct style to open new possibilities for exploring different programming paradigms and libraries. Gain insights into creating a unified system that can express the same program using either direct style syntax or monad style, bridging the gap between these two programming approaches.
Syllabus
Riccardo Cardin: Yo Dawg, Heard You Want To FlatMap Your Direct Style [Scala Days 2025]
Taught by
Scala Days Conferences