You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is wrong imo to exclude 0 in the divisor. The function accepts any number and that's the truth of it. Don't try to hide a case that happens to throw.
The text was updated successfully, but these errors were encountered:
Yeah, there could be perfectly valid code that intentionally catches divide by zero and handles it as an exceptional case—a spec shouldn’t prevent that.
It is wrong imo to exclude 0 in the divisor. The function accepts any number and that's the truth of it. Don't try to hide a case that happens to throw.
The text was updated successfully, but these errors were encountered: