Wes: This is, y honestly, my first time seeing this as a strategy. I've just never had to reach for this but i think this is really neat. You have all these ugly if checks, you can just sweep it into a singular function that does the check for you. When mixed with type rwing, the type of the t target object would be narrow to the specified type. So you're basically saying, inside of the constructor, this is type. It's so funny goes inside a constructor, correct? Ok, ok, that makes sense if it's, if it's being bound to that interesting,. especially if it's like being extended sea me and o o

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