Inheritance of different models is a really powerful way of defining types because in reality are models and never nice key and value of different types. They always have complex items deeper down. That's really cool. And on top of these I guess we can add validation like you have the, you said the very optimistic validation like if in the friends with a different type of a model. If in the friends list it said one to comma Jane. Well, it's probably going to crash when it tries to convert Jane into an integer and say no no no this is wrong. But you could decide perhaps James a strange case but if you wanted the word one, oh any to somehow work you could

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