4 ms·
I like the idea of providing an alternate value or even alternate flow of execution. The action to take when dividing by 0 is based on context: it is a busines
by ericHosick 12y ago
I like the idea of providing an alternate value or even alternate flow of execution.
The action to take when dividing by 0 is based on context: it is a business behavior. In my opinion, it is no different than any other business requirement (for example: passwords must be longer than 8 characters, etc.).
A language should allow a developer to configure the action to take when a division by zero occurs within a given context: the default being an exception and/or termination of program execution.