| ▲ | oompydoompy74 5 hours ago | |||||||||||||||||||||||||||||||
You don’t see the use case for… unions? I’ve got to stop reading the comments. It’s bad for my health. | ||||||||||||||||||||||||||||||||
| ▲ | adjejmxbdjdn 5 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||
I love discriminated unions. The problem with C# is that it’s so overloaded with features. If you come from one codebase to another codebase by a different team it’s close to learning a completely new language, but worse, there is no documentation I can find that will teach me only about that language. Throw in all the versioning issues and the fact that .Net shops aren’t great about updating to the latest versions, especially because versions, although technologically separated from Visual Studio, are still culturally tied to it, and trying to break that coupling causes all kinds of weird challenges to solve. Then stuff like extensions means your private codebase or a 3rd party lib may have added native looking functionality that’s not part of the language but looks like it is. Finally, keywords and operators are terribly overloaded in C# at this point, where a keyword can have completely different meanings based on what it’s surrounded by. LLMs are a huge help here, since you can point to a line of code and ask them to figure it out, but it still makes the process of navigating a C# codebase extremely challenging. So I can see why someone may be unhappy to see yet another feature. It’s not just this one feature. It’s the 100s of other features that are hard to even identify. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ▲ | Quarrelsome 5 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||
thanks for helping. | ||||||||||||||||||||||||||||||||