3min chapter

Software Engineering Radio - the podcast for professional software developers cover image

Episode 418: Functional Programming in Enterprise Applications

Software Engineering Radio - the podcast for professional software developers

CHAPTER

Is There a Maybe? Or an Option?

A maybe is a special struct that you can use to explicitly tell the clients of your coat which parts of your input or output can be null. Because it is a maybe, it itself cannot turn into a null, because it is truck and structs in c sharp ore not knollable. So if you want to make your return valu user, you have to rap at with a maybe of user. But if you do use a maybe then your null will be automatically transformed into an instance of that maybe type,. And your cod will proceed. It's sort of close to functional guarantees here as well.

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