What's next in C# - Mads Torgersen - NDC Sydney 2024

  Рет қаралды 8,836

NDC Conferences

NDC Conferences

Күн бұрын

Пікірлер: 39
@obinnaokafor6252
@obinnaokafor6252 5 ай бұрын
The proper blending of typed union and descriminated union for C# would be amazing - that means C# developers will enjoy the both worlds of the union. 🎉
@viccie211
@viccie211 3 ай бұрын
Mads seems like a very nice person to talk to!
@vmachacek
@vmachacek 5 ай бұрын
I want union type to be first citizen. That is something I really love in TS
@phyyl
@phyyl 4 ай бұрын
Explicit extensions are great but we need a way to explicitly implement interfaces or, ideally, traits. We are so close!
@WillEhrendreich
@WillEhrendreich 5 ай бұрын
The most important change I want for csharp is likely not going to happen. I want full type inference. It would be so incredible.
@z0nx
@z0nx 5 ай бұрын
cant we just replace chsarp with fsharp already
@WillEhrendreich
@WillEhrendreich 5 ай бұрын
@@z0nx I approve this message. Ok, the people have spoken, get on it Microsoft. Good talk, good run csharp team, you can pack it in, we will functionally take it from here, kthxbai. lol. how I wish it were so.
@guiorgy
@guiorgy 5 ай бұрын
Can't wait to work with C#13
@phyyl
@phyyl 4 ай бұрын
I hope it's going to be available by then, not a lot of updates recently... fingers crossed!
@michaldivismusic
@michaldivismusic 5 ай бұрын
Ah, this must be that "talk from yesterday"!
@zwatotem
@zwatotem 5 ай бұрын
I've been reading Mads' and other's works on the expression problem in the early 2000s. Looking forward to if you can make it in C# with the extensions. That would be awesome.
@konstsh2240
@konstsh2240 5 ай бұрын
how about finally making enums convertable to json as strings out of the box?
@DoctorKrolic
@DoctorKrolic 5 ай бұрын
a) It is not a language, but rather a BCL feature b) It is already implemented, search for JsonStringEnumConverter
@michaldivismusic
@michaldivismusic 5 ай бұрын
System.Text.Json has a built-in converter for that. It's just not the default.
@konstsh2240
@konstsh2240 5 ай бұрын
@@michaldivismusic but it doesn't convert to string that doesn't match the enum property spelling
@michaldivismusic
@michaldivismusic 5 ай бұрын
@@konstsh2240 that doesn't sound like something I'd want anyway. What do you mean exactly? That "firstname" or "firstName" won't match if the enum value is "FirstName"?
@konstsh2240
@konstsh2240 5 ай бұрын
@@michaldivismusic For example when json field might have a fixed number of string values like "Reference::Point", "Reference::Edge", "Dimension::PointToPoint" and a number of others and you want to parse them into enum Annotation{REFERENCE_POINT, REFERENCE_EDGE, DIMENSION_POINT_TO_POINT} - the the real case of json response I'm dealing with on current project and turned I had to look for side package
@tariqpahmed
@tariqpahmed 5 ай бұрын
Great language ... thanks!
@julkiewitz
@julkiewitz 4 ай бұрын
Implementing interfaces on behalf of another type. A lot of pitfalls with this, but it would basically work like type classes which are fantastic
@Kitulous
@Kitulous 5 ай бұрын
20:50 sounds like a spooky action at a distance. I'd just make the default type an array or a list and call it a day. if you need something more specific, specify the type. if you don't, is an array. or a list.
@fburton8
@fburton8 5 ай бұрын
Is there a reason other than convention that C# is mostly double-spaced?
@Wfmike
@Wfmike 5 ай бұрын
Aspnetcore results feels pretty hacky. A proper union type would be nice.
@TheOneAnOnlyGuy
@TheOneAnOnlyGuy 5 ай бұрын
[ ] >> { } for collection expressions! Coming from an #fsharper :)
@lime148
@lime148 5 ай бұрын
Yeah... we're not getting type classes, are we?
@Avantarius
@Avantarius 5 ай бұрын
Its so funny how he goes out of his way not to say the word "Java" when talking about the initial design of C#
@GeorgeTsiros
@GeorgeTsiros 3 ай бұрын
That's because C# is Pascal's/Delphi's grandchild, not Java's.
@Avantarius
@Avantarius 2 ай бұрын
@@GeorgeTsiros I have programmed quite a bit of both Pascal/Delphi and C# and I really can't see how what you are saying is true. The parallels between Java and C# are pretty obvious, while the similarities between Dephi and C# pretty much boil down to: both are imperative, both are OO. Which of course is true for most popular programming languages.
@GeorgeTsiros
@GeorgeTsiros 2 ай бұрын
@@Avantarius For starters, check out who _designed_ C#
@XKS99
@XKS99 3 ай бұрын
Sorry Mads but what you showed there of 'Typescript' style unions made me throw up a little bit. We need real union types and better function type inference both on declaration and usage in C#.
@aneshas
@aneshas 3 ай бұрын
"C# should be delightful" - this is why I love(d) it but I am not sure any more with the plethora of questionable features being added
@pedrobettt
@pedrobettt 3 ай бұрын
literally the point of the changes is to enable more scenarios for delight, though. What change were you forced to make that reduced that delight? What breaking change happened that affected you?
@viktoralferov2874
@viktoralferov2874 3 ай бұрын
всякой хернёй занимаются. лучше бы скорость и IL2CPP улучшали. меньше кучь, больше стеков.
@Alperic27
@Alperic27 5 ай бұрын
what to do when u have not much to say…. ramble ramble ramble
C#’s Functional Journey - Mads Torgersen - NDC Sydney 2024
1:00:41
NDC Conferences
Рет қаралды 19 М.
What's new in .NET 8 & C# 12 - Filip Ekberg - NDC London 2024
58:49
NDC Conferences
Рет қаралды 19 М.
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 11 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 2,8 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 20 МЛН
HTMX Sucks
25:16
Theo - t3․gg
Рет қаралды 129 М.
5 Sure Signs You're No Longer Junior Programmer
13:21
Zoran Horvat
Рет қаралды 69 М.
What’s new in C# 13 | BRK186
46:27
Microsoft Developer
Рет қаралды 49 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 561 М.
Master the Design of Functional Behavior in C#
19:17
Zoran Horvat
Рет қаралды 13 М.
Why is C# Evolving This Way?
15:02
Zoran Horvat
Рет қаралды 23 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,3 МЛН