News for hackers. Stuff that matters.
Re:Comparing C and C++ usage and performance with a real wor... by WalterBright on Sunday September 03, 2017 @11:55AM (#15162082)
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/

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.

Re:Comparing C and C++ usage and performance with a real wor... by harry8 on Sunday September 03, 2017 @09:36PM (#15165051)

    if (existsCoffee)
        writeln("Drink coffee");
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?
Re:Comparing C and C++ usage and performance with a real wor... by WalterBright on Monday September 04, 2017 @02:59AM (#15166279)
My take on C's biggest mistake:

https://digitalmars.com/articles/b44.html

Re:Comparing C and C++ usage and performance with a real wor... by harry8 on Tuesday September 05, 2017 @12:28AM (#15172527)
Sure 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.