CoRecursive: Coding Stories cover image

Tech Talk: Typescript with Chris Krycho

CoRecursive: Coding Stories

00:00

TypeScript - Types Are Just Shapes

In TypeScript, types are identified by their names. This is a place where writing in TypeScript actually feels much closer to writing in a dynamic programming language than most other languages. It's like duck typing that gets checked for you. You say, hey, this function needs a thing, which is an object which has a name on it, and it's a string. And because they match that shape, you're good to go. That idea we call structural typing,. all you care about is the structure of the thing you're dealing with. Swift's protocols are structural in nature, which is very different for me. I've been digging into Swift over the last month or so a bunch

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