2min chapter

Go Time: Golang, Software Engineering cover image

So do we like Generics or not?

Go Time: Golang, Software Engineering

CHAPTER

The Importance of Generic Types in Programming

You don't need generics, but it means that you can you can have these things which were before you might pass a dynamic interface value and maybe do a type coercion like the classic case of courses with containers. You know, in that particular example, hold it putting an integer in a interface. If it's greater than 256 or something like that, then it's actually going to have an allocation to put that in an interface. So you're actually paying the price of storing that data where there is only one slot for it. That can really mount up in terms, particularly when you have larger data structures which incorporate types.

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