Functional Programming Strategies

Subscribe
Archives
April 25, 2024

Direct-style Effects Explained

Hello! 👋

I hope you’re doing well. I’m enjoying the warmer weather and longer days, and learning about direct-style effects.

My current focus on the book is contextual abstraction, a.k.a. the abstractions formerly known as implicits. As part of this I wanted to really understand context functions, a new feature in Scala 3, and their uses. And, well, I ended up writing about 4000 words on direct-style effects and their implementation in Scala 3.

I find this a very exciting improvement to Scala 3. It gives the ability to write code in a very natural style (no monads!) but still has all the benefits of reasoning and composition we expect in functional programming. However, all the features are not quite ready at the moment. As such, I can’t include it in the book, as the book is focused on tried and tested techniques.

Hope you find direct-style effects as interesting as I do. As always, thanks for your support, and double thanks if you are one of my sponsors.


Regards,
Noel

Don't miss what's next. Subscribe to Functional Programming Strategies:
Powered by Buttondown, the easiest way to start and grow your newsletter.