Quantcast
Channel: Stack Exchange – Ars Technica
Viewing all articles
Browse latest Browse all 40

How to handle divide by zero in a language that doesn’t support exceptions?

$
0
0

Mathew Foscarini asks:

I'm in the middle of developing a new programming language to solve some business requirements, and this language is targeted at novice users. So there is no support for exception handling in the language, and I wouldn't expect them to use it even if I added it.

I've reached the point where I have to implement the divide operator, and I'm wondering how to best handle a divide by zero error?

Read full article

Comments


Viewing all articles
Browse latest Browse all 40

Trending Articles