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

SubmittedTitle on HNPointsComments
Jan 5, 2024Dennis Ritchie on the priorities of && || vs. == etc. (1982) by spc476168171

More from Lysator

All 5 posts →

Related posts from the same era