2 ms·
> Yes, if you ask me for any rectangle, and you reject a square, you are wrong Intuitively it makes sense, but practically... What if your function wants to se
by hota_mazi 9y ago
> Yes, if you ask me for any rectangle, and you reject a square, you are wrong
Intuitively it makes sense, but practically... What if your function wants to set the width and the height to different values?
This is valid for a rectangle, not for a square.
From a mathematical perspective, a square might be a rectangle. From a software standpoint, it's not.
The reason for the discrepancy between mathematics and programming?
Mutability.