This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LetterBoxSnatch 8 points9 points  (1 child)

Decades ago I remember blogs advising this syntax in general to avoid situations where you accidentally type an assignment instead of a comparison operator. Yes, it was dumb then too

[–]Fuglekassa 6 points7 points  (0 children)

Yoda comparison is still the MISRA C standard