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

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

На главную

Does this make our #chsarp code cleaner? #dotnet

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

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

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

Absolutely.

Фото профиля Slavka_
Slavka_1 год назад

today.DayOfWeek.ToString(“G”)

Фото профиля Dan Patrascu
Dan Patrascu1 год назад

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

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

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

Фото профиля Asadbek Sindarov
Asadbek Sindarov1 год назад

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 Marino1 год назад

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 Dash1 год назад

This makes it way more cleaner.

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

Of course it's cleaner

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

So pattern matching like #fsharp

Фото профиля Serhat
Serhat1 год назад

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

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