top | item 37745740

(no title)

barake | 2 years ago

You're likely in for a treat if you haven't written C# in a while. The language has evolved quite a bit, especially around all kinds of nice ergonomics. Interesting things like pattern matching, using statements, and performance oriented primitives.

I got back to writing C# full time earlier this year and it's a joy.

discuss

order

distract8901|2 years ago

I've been keeping up with the language and I am... Less than enthused.

Maybe I'm just yelling at clouds, but I see more bloat than useful features recently.

Non-nullable reference types as default was a bad idea and I will die on this hill

TravHatesMe|2 years ago

> Non-nullable reference types as default was a bad idea

Why?

_a_a_a_|2 years ago

I must admit to disliking C#'s functional libraries. I have wasted so much time trying to get the buggers into a pipeline. It becomes agonising in a way that doing the same thing in Scala was so very much a dream. I keep discovering the hard way, just don't do it (or just get a whole lot more experienced at it, although I don't know how without going through the pain barrier, and deeper each time, like Inception).

Could you give me a hint about these 'performance oriented primitives' please? (The only ones I can think of are structs versus classes) Edit: but isn't there a new thing where you can subtype a class without allocations, like Scala's record classes, or is that new in Java, can't remember.