Exploring the Option Monad in C# (get rid of null)

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

The people in here complaining about this code being unreadable have clearly never written code that has to achieve certain states without writing lots of boilerplate. Pattern matching is a useful skill to learn, people.

fusedqyou
Автор

In this case I will use simple if esle statements to better readability. But for example I like to use switch on enum using pattern mathcing

rasimismatulin
Автор

Skip the text/header very enjoying when trying to read the code

petropzqi
Автор

i don`t understand it complete may be u can make a video on it if it doesn`t make a 15 mins video u can make add some other topics with it

and thanks for ur effort

karimkhaled
Автор

Nice, but can you explain what a monad is in one or two sentences....

DavidSmith-efeh
Автор

Then I rather check for null, you can even do that on compile time

casper_hansen
Автор

looks powerful but how much time does it take to understand it

vladhr
Автор

Why not use F# instead? Lately, C# has been trying to copy everything from it's cooler little brother, but in a way worse and convoluted way IMHO

atlerudshaug
Автор

My senior will kill me if I write code like this😅

nizuli
welcome to shbcf.ru