News for hackers. Stuff that matters.
Re:1/0 = 0 by adrianratnapala on Friday August 10, 2018 @07:11PM (#17737349)
The nicest UX would be to say something like "waiting..." while the denominator is zero. Presenting a zero to the user instead is probably an acceptable short-cut, but at the end of the day, it's a UX decision. Which is why it should be handled in explicit if-else code, that lives as close to the UI as possible, rather than being buried in the semantics of basic numerical operators.

There are no comments on this comment yet.