Hacker News new | ask | show | jobs
by CyanLite2 2212 days ago
Serious question: Why?

C# is faster, more productive, has better tooling, and generics.

4 comments

C#er here. The .NET world is confusing and hard to navigate if you haven't being doing it for years. The various flavours of .NET. The various ways of doing concurrency depending on what version it was introduced in. It's actually quite hard to get a project running in .NET core with EF for example from what I found. VSCode crapped out trying to install Nuget packages. I mostly use classic .NET. A lot to be said for getting started quickly. I have not used Go but I imagine it's great at that. Quickly compile to a single binary and ship that.
I did some benchmarks at some point, and for me:

Go was faster, Go use (a lot) less memory, much easier to distribute the application, and I don't need generics (even though I like it)

Well, that's a highly-opinionated statement :P

The serious answer is that Go is a reasonably well-supported language at GitHub, and C# isn't at the moment.

Opinionated +1 :)

The C# compiler is called Roslyn which might not be obvious for people trying to find it on GitHub - it's incredibly well supported, regularly updated, and lively:

https://github.com/dotnet/roslyn

What means well-supported language at GitHub?
Go compile to native binaries, and is used for a lot of tools and CLIs.