4min chapter

Happy Path Programming cover image

#75 Haskell "Not as Scary as You Think" with Kris Jenkins

Happy Path Programming

CHAPTER

Is Type Classes Ad Hoc Polymorphism?

type classes allow you to have the same external behavior for many different data types. You can compose a new data structure that's array plus a type class or something like that. But inheritance ultimately is just fancy composition. Yeah. Or dangerous composition depending on your. So, but is type classes generally the way to kind of add behavior to, to data structures? Yes. And then someone can extend their data structure, implement your interface as well.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode