News for hackers. Stuff that matters.
Re:AT&T Syntax versus Intel Syntax by fweimer on Sunday November 13, 2022 @05:07PM (#33587882)
Some older C coding styles recommend that order because before compilers added warnings, “if (17 = variable)” resulted in a diagnostic, while “if (variable = 17)” would not. Nowadays, I think most programmers prefer putting the fastest-changing expression first.
Re:AT&T Syntax versus Intel Syntax by pjmlp on Monday November 14, 2022 @01:43AM (#33590871)
Yeah that is due to clever C semantics that that should never had allowed for anything other than boolean expressions in conditionals like proper grown languages.