C vs. C++

YOU HAVE TO CHOOSE 1 PROGRAMMING LANGUAGE; C OR C++, TO PROGRAM IN FOR THE REST OF YOUR LIFE. WHICH ONE DO YOU PREFER?

Kill myself

C++, it cam do everything c can do and more

I'll just use C++ to make a compiler for Rust.

Kotlin Native

Probably C++ and then just use mainly C features.

C

C with a preprocessor written in C that provides generics and RAII. C++ is shit piled on shit.

HTML

fpbp

I prefer C, but C++ has more features, though a lot of them are trash. But you can simply choose to ignore them.

C++

c#

The "object oriented is a meme" is a meme. OOP in C# works pretty good and can make your programming very flexible.

C++. I usually just write C-like C++ anyway.

>using a proprietary language
also
>no one has mentioned machine code yet

Its open standard.

>implying I can't write a compiler in C and use my own language

so are word docs, but microsoft doesnt even follow their own standard, so they dont work on other platforms

C++

C++ with extern "C".

C# ?

c++

c is literally useless except for the unique advantage of a very simplistic calling convention.

C# with unsafe + AOT

so open everything depends on nonfree M$ code and a lot of the tooling is nonfree as well.

sounds 10/10 free and open source bro.

why the fuck didn't the code tags work inline? They used to...
fucking Nagasaki

C.

Dub microtoddler

C

C++. very simple and easy answer.

>microtoddler
I work writting c++ and c#.

I use Arch, g++, mono (mcs) and VS Code.

Suck muh dik

C

because C++ is only good for video games

C has something like that already
//max.h

TYPE max(TYPE a, TYPE b)
{
return a>b ? a : b;
}

//funcs.h
#define TYPE int
#include "max.h"
#undef TYPE

I really don't see the appeal of that old byte processing language without templates, exceptions, namespaces, constructors/destructors (and therefore RAII), virtual function polymorphism, references, operator/function overloading, reusable standard generic containers, or explicitly named casts.

C++ any day.

word doc format is not licensed under open standards.

They have open source compiler, open source framework, open source libraries. Actually its not just "open source" most of it is under free-as-in-libre-free software licensed under MIT/Apache/etc.

...

It doesn't matter.
No matter what I'll choose, I'm just going to write a lisp compiler.

Than I have a more sane language to work with and with that I can create more compilers for even nicer languages

>I work writting c++ and c#.
pajeet, my son.

ffpbp (first five posts best posts)