2026-11-14 18:32 UTC
No, it should not be an error. If you’re making a calculator and your user enters 1/0, your program should not have the propensity to crash; the result should simply be NaN and you should choose he you display that result to your user.
Replies (2)
-
@treadful@lemmy.zip 2026-11-14 19:29
You talk like error handling isn’t a thing.
-
@daychilde@lemmy.world 2026-11-14 22:46
error ≠ crash