News for hackers. Stuff that matters.
Re:C implementation of Tic-Tac-Toe in a single call to printf by simias on Sunday June 07, 2020 @09:30AM (#23447195)
I've had to deal with code like that, only poorly mimicking Lisp instead: `#define unless(_x) if (!(_x))` etc...

One of my favourite accidental features in Rust is that macros are so annoying and cryptic to write that people think twice before abusing them.

Re:C implementation of Tic-Tac-Toe in a single call to printf by TeMPOraL on Sunday June 07, 2020 @04:25PM (#23450485)
I understand the temptation. I keep catching myself on writing `unless( ... )` in C++ every couple days, and I've considered adding a macro for it, but ultimately decided against it, as the rest of the team would not understand why I need it.
Re:C implementation of Tic-Tac-Toe in a single call to printf by Gene_Parmesan on Sunday June 07, 2020 @02:16PM (#23449353)
Wouldn't be surprised if that was intentional, actually. The idea of making syntax a little unwieldy for things that you should really think twice before using is not a new one.