PodRocket - A web development podcast from LogRocket cover image

Matt Pocock answers your TypeScript questions

PodRocket - A web development podcast from LogRocket

00:00

TypeScript's Preference for Functional Code

I'm not like a functional diehard, but I do think that I go out of my way heavily to write code that is like very functional. And I think that TypeScript tends to point me that way. It just feels the inference is smarter. It makes me even more hesitant to like mutate it all. Like, no, everything needs to be static. Definitely. Every function you feel really good about because you understand all the arguments are strongly typed. And so you can capture stuff in that function. There's not that much kind of global stuff that you can interact with if you don't need it. So yeah, I don't know that criticism sort of rings a bit hollow

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