Re:D is being used for autonomous driving research – Audi an...
by flukus on Tuesday June 25, 2019 @08:06PM
(#20280608)
The logic is more "why add complicated features to a language when there are existing ways to have the same functionality". C++ is already over complicated, the last thing it needs are more features. This effort is also being replicated across several languages with all there own syntax and warts. Generating source code via a script or template library is much more compositional.
Re:D is being used for autonomous driving research – Audi an...
by gdy on Wednesday June 26, 2019 @05:18PM
(#20289308)
I'm not sure if adding an additional language or two to C makes the codebase simpler than pure C++ code.
What's more, I've witnessed quite a few times the code generating program becoming incomprehensible after more and more parts of the code gets generated conditionally.
Re:D is being used for autonomous driving research – Audi an...
by pjmlp on Wednesday June 26, 2019 @07:05AM
(#20283774)
And more error prone, while a type system enforces correctness.
Re:D is being used for autonomous driving research – Audi an...
by wahern on Thursday June 27, 2019 @03:43AM
(#20292454)
If you're using macros or another language entirely to generate C code, it's often to preserve type safety. Otherwise it's often easier to typecast everything through void pointers.
It's the same situation with Go, so it's not like C is entirely anachronistic with regards to the trade-offs it makes.
Re:D is being used for autonomous driving research – Audi an...
by pjmlp on Friday June 28, 2019 @02:38AM
(#20302013)
Macros and type safety don't really go hand in hand, hence why ISO C++ is progressively removing any reason to still use them beyond conditional compilation.
Go, just like C, is stuck on a by gone era of programming languages.
By this logic C as good as any language as long as you can compile that language to C.