this post was submitted on 16 Jun 2023
469 points (98.6% liked)
Memes
45546 readers
1917 users here now
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This is how I feel about Java vs Go/C#/etc
Which is java and which is C# lmao
Java is the top, C# is the bottom. The Java language designers consider unsigned integers harmful (and this). They're basically saying "You could hurt yourself with this so we're taking it away." I find that patronizing and disrespectful. On the other hand C# and Go tell you, "Yo bro, doing pointer math and direct memory manipulation is not safe, but I'm not gonna stop you."
I love that about C#. It's safe and managed, but if you need the unsafe features for performance etc, then they're available. It's the best if both worlds, imo.
It sounds like you're thinking of C++ rather than C#, no?
I'm talking about C#'s unsafe keyword. It lets you do pointer shenanigans.
I must admit, I've been a C# developer for a few years now and I don't think I've every messed around with "unsafe" or even seen it used lol, now I really wanna try it.
Holy shit, C# copied Rust!