Загрузка видео...

Не удалось загрузить видео

На главную

Does this make our #chsarp code cleaner? #dotnet

17,790 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Stefan Đokić | .NET
Stefan Đokić | .NET2 лет назад

Absolutely.

Фото профиля Slavka_
Slavka_2 лет назад

today.DayOfWeek.ToString(“G”)

Фото профиля Dan Patrascu
Dan Patrascu2 лет назад

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

Фото профиля Kai Radewald 🇪🇺🇺🇦🇮🇱🇨🇦📯🚲🌈♻️💚
Kai Radewald 🇪🇺🇺🇦🇮🇱🇨🇦📯🚲🌈♻️💚2 лет назад

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

Фото профиля Asadbek Sindarov
Asadbek Sindarov2 лет назад

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
Michael Marino2 лет назад

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
Satyabrata Dash2 лет назад

This makes it way more cleaner.

Фото профиля A Non Gamer Dev
A Non Gamer Dev2 лет назад

Of course it's cleaner

Фото профиля elduwani.dev
elduwani.dev2 лет назад

So pattern matching like #fsharp

Фото профиля Serhat
Serhat2 лет назад

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

Похожие видео