sheredom / subprocess.h

🐜 single header process launching solution for C and C++
The Unlicense
1.12k stars 97 forks source link

Drop "C++" as a claimed targeted language. #22

Closed eyalroz closed 4 years ago

eyalroz commented 4 years ago

C code is very rarely appropriate as C++ code. It is non-idiomatic, resource-unsafe, and difficult to combine with common C++ libraries and other idiomatic code.

I'd say it is "also usable in C++", but not beyond that.

rwhair commented 4 years ago

Or you could save a few characters and just call it “usable”.

nyalloc commented 4 years ago

I have to disagree. If C code compiles with a C++ compiler then it is also C++. If this code could only be compiled with a C compiler, you would have a point, but this code has clearly been written to work from both C and C++ contexts. Also, just because it isn't "idiomatic" doesn't mean it isn't C++.

cyberkm commented 4 years ago

Eyal, if a code can be compiled by a c++ compiler that follows c++ standard, that means the code is written in c++. It's as simple as it gets. Everything else is just speculations and personal preferences.

eyalroz commented 4 years ago

It seems you have not read what I've written and have answered a different claim. Please re-read it.

sheredom commented 4 years ago

Thanks for your interest in my library, I love serving the C++ community with code that is C++ because it can be compiled by any C++ compiler.

I won't be taking your suggestion on board as any idealogical statements like 'C++ should be like X' are not worth getting out of bed over.