Y
Hacker News
new
|
ask
|
show
|
jobs
by
Dewie
4384 days ago
|| and && operators in C-like languages are "short-circuited", i.e. (true || predicate) just returns (true) without evaluating (predicate). This is a form of lazy evaluation.