4 ms·
"C is faster/smaller/... than C++" hasn't been true in a long time. I would argue that the time you need to invest to get something done correctly in C is a co
by bipson 4y ago
"C is faster/smaller/... than C++" hasn't been true in a long time.
I would argue that the time you need to invest to get something done correctly in C is a cost you can avoid with (modern) C++
- lerno 4y agoC++ compile times would like to have a word with you ;) The biggest drawback of C++ are the atrocious compile times.
- bipson 4y agoAre you serious? I mean, of course, I also like short compile times... but since when are they considered a serious cost? What are we talking about? Seconds? Minutes? Hours? Are you using your compiler as a syntax checker? Always compiling everything all the time? Especially since you compile once, what you run a million times and now that everyone is running around with what would have been considered a supercomputer decades ago in their backpack, and a half in their pocket. Of course I think stuff should compile fast (that's why we use Make, CMake, ninja, etc.) but I would never chose C over C++ because of compile times... Code that requires high mental load and solving the same stupid things again, and again, and again... still costs more time than my compiler can get me back IMO.
- 0x20cowboy 4y agoPersonally, I don’t like C++ - maybe it’s the friends function or templating or the usual build systems… and it’s not small by a long shot. My opinion is not really based objectively, I just don’t like it. If I wanted / needed something more oo I’d probably learn rust. C++ is everywhere doing amazing things so hate - unreal engine! - just really not my cup of tea.