Give me 1 [O-N-E] reason to use C++ instead of C

Give me 1 [O-N-E] reason to use C++ instead of C

Attached: 239081039.jpg (1079x773, 93K)

Other urls found in this thread:

martin-ueding.de/articles/qsort-vs-std-sort/index.html
lemoda.net/c/inline-qsort-example/
twitter.com/NSFWRedditVideo

object

/thread

this

oop

Give me 1 [O-N-E] reason to use C++ or C instead of Go

Templates.
While classes can be simulated by C means, templates literally make code on the fly.

Performance

Attached: Screenshot from 2018-09-26 20-43-28.png (160x60, 3K)

give me ONE (1) reason to use Go instead of Nim

A usable GTK wrapper.

give me single argument to use GTK instead of Qt

???

is Nim actually comfy? i'm trying to move away from nodejs to golang, since i only write backend software
i like how fast i can roll out software with nodejs

Proper scaling.

Templates and compile time evaluation.

std::sort is faster than qsort because of inlining.

Umm...sweetie... C can do this.

You actually want to get something done rather than spending nine years trying to work out if you deleted every possible thing on every possible control path and reimplementing basic containers.

Const.

Sorry, sweaty, you simply have no idea
martin-ueding.de/articles/qsort-vs-std-sort/index.html

YIKES
lemoda.net/c/inline-qsort-example/

You should be embarassed

>It is slightly slower than the C++ library's standard sort
BTFO'd urself

Y I K E S
I
K
E
S

>cucked by own link

Attached: Screenshot from 2018-09-26 21-24-19.png (1808x98, 19K)

>trusting general statements rather than benchmarking yourself
DOUBLE YIKES

templates
performance
concurrency

>he didn't even read the article he linked to

Find it yourself or fuck off, lazy cunt.

Attached: Kung-Pao.jpg (320x240, 19K)

...

STL containers
proper string type
generics

cout

Attached: nexus2cee_Magisk-Generic-Hero.png (1024x576, 235K)

you mean stdout?
yeah you can do that in C

puts_f(`whatever`):

what's better about go concurrency that nim is lacking?

"My boss said I have to," is the only acceptable excuse.

pthreads

isnt allowed in ioi

I has two more pluses.

But user, OP was wondering why he should go with C++ instead of C, no going to C from C++.

Vector, map

STL

This

multiple inheritance

Attached: the_mixed_up_chameleon_by_islanderfan91-d8602kq.jpg (1024x768, 315K)

That's when you tell your boss you don't care about his retarded pleb tier opinions on inferior programming languages, and quit.

>being a wagie
>ever acceptable

Standard atomics without the nonsense that is C11. References. Iterators. Turing-complete metaprogramming. Low-effort bait.

cout is pretty niggerlicious

Attached: 1501026503081s.jpg (125x124, 2K)

templates are terrible. I've written more dynamic code with the precompiler