5min chapter

Changelog Master Feed cover image

Functional programming with generics? (Go Time #249)

Changelog Master Feed

CHAPTER

The Importance of Generics in the Compiler

With generics, we're able to vary the type of the input of a function or the output of a function. It's called type parameterization. So if we can do that, now we can have an infinite number of actual implementations of it because the type can change. The implications of this go beyond map, but fundamentally, now we're at a point where instead of using interface, raw interfaces, or, you know, the any type now,. Instead of doing reflection,now we can add compile time, prove that certain functions will work for some definition of work.

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