Lysator company blog
Dennis Ritchie on the priorities of && || vs. == etc. (1982)
Early C had no separate operators for & and && or | and || . (Got that?) Instead it used the notion (inherited from B and BCPL ) of "truth-value context": where a Boolean value was expected, after "if" and "while" and so forth, the & and | operators were interpreted as && and || are now; in ordinary expressions, the…
- Points
- 168
- HN comments
- 171
- Submissions
- 1
- Cited by
- 0 commenters
Programming LanguagesSoftware Engineering2024
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jan 5, 2024 | Dennis Ritchie on the priorities of && || vs. == etc. (1982) by spc476 | 168 | 171 |