logoalt Hacker News

1718627440last Monday at 3:06 PM1 replyview on HN

> Lack of a separate assignment token

What does that mean?


Replies

kbolinolast Monday at 3:41 PM

Assignment is = which is too close to equality == and thus has been the source of bugs in the past, especially since C treats assignment as an expression and coerces lots of non-boolean values to true/false wherever a condition is expected (if, while, for). Most compilers warn about this at least nowadays.

show 1 reply