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.
[ Parent
| on HN ]
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.