Happy Path Programming cover image

#35 The Pattern of Design Patterns

Happy Path Programming

00:00

How to Use Default Arguments in a Type Class

There's a difference between do I want this parameter to be filled in by the scope, or do I want the function to provide me with a default. The common use case that I see for type classes is around generic transformers. You'd have to maybe make it a type alias to something. So I think that type aliases are just just an alias. But I think maybe opaque aliases and Scala three may work for this, but be I.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app