7 karma · joined Sep 20, 2024 (2y ago) · 11 submissions
comment 2w ago · link · parent
comment 2w ago · link · parent
Some example.
Open API document generation using type handlers doing this in go was a pain in .net is comes out of the box.
A lot of people underestimate the power of extension methods.
.nets metadata system is compiled time safe where Go is not and this has burnt me a lot.
I really like go for command line tools Small binary sizes I lovely.
go's standard library is significantly more hackable than .nets there have been a few things where I've ended up using Go because to do it in .net would require me maintaining a fork of the standard library.
Go makes composing data insanely simple. where in .NET you can have an equivalency but it will be done via interfaces.
Go's Dark Type System is both great and really annoying.
C#'s stricter type system when it comes to interfaces can be really handy as that can be used as metadata to change how data is processed and enforce compile time checks.
comment 1mo ago · link · parent
slightly off topic but a lot of things in .NET actually use compile time duct typing. like how async works To make your own task, you don't add an interface to it. You just implement a single method.