Sam Walpole

@samwalpole
57 Followers
58 Following
17 Posts

Senior Sofware Engineer specialising in .NET, C#, and AWS. Looking to share insights, build community, and be inspired.

#dotnet #csharp #aws

Bloghttps://samwalpole.com
Email[email protected]
@kleinhaus @maxitb I don't have any experience in C, but something I find them useful for is returning some data or an error. Currently I find myself creating result objects that have nullable Data and Error properties which is then quite clunky to check. The idea with unions would be to return something that either is only the data or only the error, which I think is a much more robust way of doing things.
@candoumbe I'm glad to hear that. Nice to meet you :)

I've recently become aware of the proposal to add discriminated unions to C#. Personally I think this is one of the biggest features missing from C# right now and I'd love to see it implemented.

https://github.com/dotnet/csharplang/blob/main/proposals/TypeUnions.md

#dotnet #csharp

csharplang/proposals/TypeUnions.md at main ยท dotnet/csharplang

The official repo for the design of the C# programming language - dotnet/csharplang

GitHub
@mbrdev Hey ๐Ÿ‘‹ Nice to meet you!
@Ophitoxaemia Hey ๐Ÿ‘‹ What makes you reluctant about C#? :)
@0xEE Nice to meet you! Same here, I was missing the Twitter/X format but really didn't want to go back there.
@codemouse92 Hi! Nice to meet you :)
@askonth Yes there are definitely more job opportunities in C#. That's why I learned it too!
@shom Thanks for the tip!
@askonth Nice. If you're coming from Clojure, have you tried F#? It's .NETs functional language so has those benefits plus the .NET tooling. I've played with it a bit but most of my work is with C#.