Resolved: Is there actually a reason why overloaded && and || don't short circuit? #it #fix #programming
Resolved: Is there actually a reason why overloaded && and || don't short circuit? #it #fix #programming
Is there actually a reason why overloaded && and || don’t short circuit?
The short circuiting behaviour of the operators && and || is an amazing tool for programmers.
But why do they lose this behaviour when overloaded? I understand that operators are merely syntactic sugar for functions but the operators for boolhave this behaviour, why should it be restricted to this single type? Is there any…
View On WordPress














