Re:The Ten Commandments for C Programmers (1987)
by roryrjb on Sunday May 24, 2020 @06:59AM
(#23290700)
Actually yes I did forget about BetterC and it has been on my radar for a while. I have played with D before and honestly out of all the options in this space I've found it's probably the one I would go for on a project. It seems to strike the best balance between productivity and performance for me, the runtime seems much less magical than Go. I will definitely check out BetterC!
D as Better C works very well as a replacement. I've converted a lot of code from old C to BetterC and it goes very quickly (once you remove the use of the preprocessor, which can be tricky if you use the preprocessor as a metaprogramming tool). The syntax is nearly identical.
https://dlang.org/blog/2017/08/23/d-as-a-better-c/
Note that no D runtime library is required. Just the C Standard Library.
(Yes, I am in charge of the D Language Foundation. No, I don't receive a nickel from it. I do it because I believe in it.)