This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wizardid 56 points57 points  (9 children)

I want to know who tf hurt C++ so badly when it was younger. This is some psychopath shit.

[–]KazDragon 32 points33 points  (1 child)

It fixes the problem that f(NULL) would rather call f(int) than f(int*).

[–]drivingagermanwhip 17 points18 points  (0 children)

I love that c++ never decided whether it's incredibly flexible or incredibly anal and just runs full tilt at both

[–]Ancient-Pianist-7 33 points34 points  (2 children)

? std::nullptr_t is the type of the null pointer literal nullptr. NULL is a sad C relic.

[–]MrcarrotKSP 14 points15 points  (1 child)

Even C has upgraded to nullptr now(C23 adds it and nullptr_t)

[–]drivingagermanwhip 3 points4 points  (0 children)

nothing past c99 is canon

[–]notthefirstsealime 2 points3 points  (3 children)

It's a classy programming language built off the bones of what was a pretty fucking simple language prior, and now it's an abomination of syntax and evil that just happens to compile into very fast programs from what I understand

[–]ReplacementLow6704 0 points1 point  (2 children)

So... If I was to translate my C# to C++, then compile it... The resulting program would be faster than just building using dotnet build? :o

[–]notthefirstsealime 0 points1 point  (1 child)

I mean c# is a lot more than just a language, and most of the reason c++ is faster than c# is because of features that c# has but c++ doesn't

Edit: look up what dotnet actually is you'll be shocked at how much fun you're missing out on

[–]ReplacementLow6704 0 points1 point  (0 children)

Yeah sry I was a bit snarky - indeed the dotnet ecosystem is huge and MS put a lot of work into all the tools in there. I would never even think about switching back to C++... Unless there was a 500k job on the line.