This project is read-only.

Exceptions vs return errors

Topics: Developer Forum
Nov 19, 2006 at 1:55 PM
Do you think is better use exceptions for errors, or return -1 or something similar?

I think exceptions are better cause you write less code with less if-else, but the library becomes slower... while return -1 is faster but your code becomes less readable.

What do you think?