2 ms·
Over in D-land we've embraced the concept of using D as a "better C" :-) https://dlang.org/blog/2017/08/23/d-as-a-better-c/ https://dlang.org/blog/2017/08/23/d
by WalterBright 9y ago
Over in D-land we've embraced the concept of using D as a "better C" :-)
https://dlang.org/blog/2017/08/23/d-as-a-better-c/ https://dlang.org/blog/2017/08/23/d-as-a-better-c/
This is not in the sense of tossing away C coded programs wholesale and rewriting it in D, but incrementally using D here and there for parts of a C program. That way, you've always got a working, usable program.
- harry8 9y agoif (existsCoffee) writeln("Drink coffee"); http://ddili.org/ders/d.en/if.html http://ddili.org/ders/d.en/if.html Sad that you adopted one of C's worst features. Why? Can you get rid of it and mandate the bracing every block?
- WalterBright 9y agoMy take on C's biggest mistake: https://digitalmars.com/articles/b44.html https://digitalmars.com/articles/b44.html
- harry8 9y agoSure but there is just no reason at all to copy unbraced blocks. All you do is invite bugs for zero benefit. Maybe there are bigger issues with C? But that's a different discussion. I want to know why you copied something as simultaneously horrendous and useless as unbraced blocks? If you just didn't think it through and that's the way languages syntactically similar to C have always done it, ok. I'm sure I've made worse mistakes. But please call it one way or the other.