4 ms·
if (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
by harry8 9y ago
if (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.