Which features of C# 11 are you most interested in? Let me know in the comments. Source code available at: github.com/JasperKent/Generic-Maths Remember to subscribe at kzbin.info/door/qWQzlUDdllnLmtgfSgYTCA And if you liked the video, click the 👍.
@demarcorr2 жыл бұрын
i took a 2year hiatus from dev, got back in about a month ago and now we can define static abstract members in interfaces. What a time to be alive. I love these new features
@codingbloke9 ай бұрын
Wow! More than a year on since C#11 and I did not know about this feature. Really well explained thank you!
@Rhysling2 Жыл бұрын
Brilliantly clear. Thank you!
@krccmsitp28842 жыл бұрын
Interesting and helpful roundup!
@haroldpepete Жыл бұрын
nice tip, thank sr by share with us your knowledge
@jimpaloander18889 ай бұрын
1. They have to introduce vector math on arrays. Overloading operators +,*,-,/ create temporary objects. These in turn for long expressions and large vectors occupy as much extra memory as the number of extra temporaries. Fortran has it since decades ago, Zig has introduced it by scratch; it is unreasonable in 2024 C# not introducing vector math operations on arrays. 2. They should introduce a type for automatic differentiation (AD) build in the language so that 1st and 2nd order derivatives can be computed on the fly. 3. They have to introduce a feature for compile time code execution similar to Zig.
@williamliu89852 жыл бұрын
Can I say the static abstract method in interface is designed to abstract the static member out of class?
@CodingTutorialsAreGo2 жыл бұрын
Yep, that's a fair way of putting it.
@RiversJ2 жыл бұрын
I can't believe these weren't a thing earlier and even worse i can't use them yet where i need them 😃
@mihaiga Жыл бұрын
Maybe it is a problem of commutativity when summing over unordered lists. In this case, the sum is not deterministic.
@CodingTutorialsAreGo Жыл бұрын
Not sure what you mean.
@mihaiga Жыл бұрын
@@CodingTutorialsAreGo commutativity means that A+B = B+A so if the sum is over (A,B,C) then it may give a different result than over (A,C,B). My assumption is a stretch, I don't believe that Microsoft was considering abstract algebra in this case. Thank you for your videos, they are very informative and to-the-point. I wish to see this channel grow and I will recommend it to my colleagues.
@CodingTutorialsAreGo Жыл бұрын
@@mihaiga I know what commutative means, but addition is also associative, i.e. (a + b) + c == a + (b + c). Therefore, order of summation does not make any difference.
@haroldpepete Жыл бұрын
that makes no sense, 2+3+5 is the same that 5+2+3 and the same as 3+5+2, whatever the order you use at the same element, sum is the same
@marklord76142 жыл бұрын
Nice video. Thank you sir.
@foudilbenouci482Ай бұрын
Aggregate extension method does the job instead of sum and you could have used it in your sum implementation