Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

C# has much better primitives for controlling memory layout than Java (structs, reified generics).

BUT it's definitely not a language designed for no-gc so there are footguns everywhere - that's why Rider ships special static analysis tools that will warn you about this. So you can keep GC out of your critical paths, but it won't be pretty at that point. But better than Java :D



> but it won't be pretty at that point

Possibly prettier than C and C++ still. Every time I write something and think "this could use C" and then I use C and then I remember why I was using C# for low-level implementation in the first place.

It's not as sophisticated and good of a choice as Rust, but it also offers "simpler" experience, and in my highly biased opinion pointers-based code with struct abstractions in C# are easier to reason about and compose than more rudimentary C way of doing it, and less error-prone and difficult to work with than C++. And building final product takes way less time because the tooling is so much friendlier.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: