3 ms·
I've actually gone backwards from my original positions. I used to think that using C++ was acceptable in some cases. I no longer do. The faults isn't even C
by bsder 5y ago
I've actually gone backwards from my original positions.
I used to think that using C++ was acceptable in some cases. I no longer do.
The faults isn't even C++ the language, per se. It's the ecosystem--or more appropriately--the lack thereof.
A lot of the modern languages integrate with C, properly. They integrate on Linux, Windows, OS X/macOS, iOS, Android, etc.
Nothing integrates with C++ well, and it's the fault on the C++ side. That means dumping C++. Perhaps the C++ compiler writers will finally have some incentive to fix their crap.
- tovej 5y agoThe C compiler people and the C++ compiler people are the same people.
- zabzonk 5y agoIf you can integrate something with C, you can do the same with C++.
- Koshkin 5y agoThis is actually a pretty deep idea, not to rely on a single language for implementation. I would go as far as suggesting to use as many DSLs as possible, to make sure that each component or level of abstraction is adequately expressed.
- binarynate 5y ago> That means dumping C++. Or just integrate with C++ code by exposing it through C linkage with `extern "C" {}`. Sure, C is the de facto lingua franca of programming languages, but that doesn't seem like a pragmatic reason to choose C over a different language that may be better for the job. Also, C++ has a massive ecosystem.
- bsder 5y ago> Or just integrate with C++ code by exposing it through C linkage with `extern "C" {}`. Nope. Been there. Done that. Got the scars. For example, what happens when an exception gets thrown on the other side of that "extern C"? Yeah, undefined. The problem is that if you're using C++, you get the C++ machinery--allocators, exceptions, etc.--and you can't dodge it.
- pjmlp 5y agoExcept that libc you are using, most likely was implemented in C++ with extern "C", unless using a pre-historic C compiler.
- clappski 5y agoPretty sure that the C compiler writers, writing their C compiler in C++, probably don't feel the same way. Especially as they're also the same people as the C++ compiler writers.
- rramadass 5y ago>Nothing integrates with C++ well, and it's the fault on the C++ side Not even wrong !