正在加载视频...

视频加载失败

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#

相关视频

How does it feel to be my foot cleaner?
0:25

Sensitive content

How does it feel to be my foot cleaner?

alpha findom ldn

26,130 次观看 • 8 个月前