Loading video...

Video Failed to Load

Go Home

Does this make our #chsarp code cleaner? #dotnet

17,790 views • 1 year ago •via X (Twitter)

10 Comments

Stefan Đokić | .NET's profile picture
Stefan Đokić | .NET1 year ago

Absolutely.

Slavka_'s profile picture
Slavka_1 year ago

today.DayOfWeek.ToString(“G”)

Dan Patrascu's profile picture
Dan Patrascu1 year ago

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

Kai Radewald 🇪🇺🇺🇦🇮🇱🇨🇦📯🚲🌈♻️💚's profile picture
Kai Radewald 🇪🇺🇺🇦🇮🇱🇨🇦📯🚲🌈♻️💚1 year ago

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

Asadbek Sindarov's profile picture
Asadbek Sindarov1 year ago

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's profile picture
Michael Marino1 year ago

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's profile picture
Satyabrata Dash1 year ago

This makes it way more cleaner.

A Non Gamer Dev's profile picture
A Non Gamer Dev1 year ago

Of course it's cleaner

elduwani.dev's profile picture
elduwani.dev1 year ago

So pattern matching like #fsharp

Serhat's profile picture
Serhat1 year ago

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

Related Videos

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 views • 8 months ago