Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Does this make our #chsarp code cleaner? #dotnet

17,790 görüntüleme • 2 yıl önce •via X (Twitter)

10 Yorum

Stefan Đokić | .NET profil fotoğrafı
Stefan Đokić | .NET2 yıl önce

Absolutely.

Slavka_ profil fotoğrafı
Slavka_2 yıl önce

today.DayOfWeek.ToString(“G”)

Dan Patrascu profil fotoğrafı
Dan Patrascu2 yıl önce

that, unfortunately, doesn't answer the question. Do switch expressions make our code cleaner compared to switch statements?

Kai Radewald 🇪🇺🇺🇦🇮🇱🇨🇦📯🚲🌈♻️💚 profil fotoğrafı
Kai Radewald 🇪🇺🇺🇦🇮🇱🇨🇦📯🚲🌈♻️💚2 yıl önce

I like it more, it's more concise, and doesn't resemble goto so much.

Asadbek Sindarov profil fotoğrafı
Asadbek Sindarov2 yıl önce

C# is going towards being more of a functional programming language. It lacks a couple of things that other fp languages offer, but I still like using C#. I personally like the features for switch expressions and records as well

Michael Marino profil fotoğrafı
Michael Marino2 yıl önce

Yes, and it removes the possibility of forgetting to assign the variable, or assigning to the wrong one in the middle of the switch statement.

Satyabrata Dash profil fotoğrafı
Satyabrata Dash2 yıl önce

This makes it way more cleaner.

A Non Gamer Dev profil fotoğrafı
A Non Gamer Dev2 yıl önce

Of course it's cleaner

elduwani.dev profil fotoğrafı
elduwani.dev2 yıl önce

So pattern matching like #fsharp

Serhat profil fotoğrafı
Serhat2 yıl önce

aren't these kind of additions just make the code non readible? I don't like these kind of changes in c#

Benzer Videolar