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 how you display that result to your user.
- 0 Posts
- 3 Comments
Joined 1 year ago
Cake day: October 10th, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Lupie@sopuli.xyzto
Linux@lemmy.ml•Linux desktop use spikes to over 10% in North America for the first time. There is also a corresponding drop in Windows and OSX use.
16·4 months agoNo one wants to swap to Windows 11, even a lot of businesses; it’s that bad.

I’m just saying a try-catch feels like a little much for handling mathematically valid user input.