2 ms·
Java world -> Aren't checked exceptions just error codes that use types instead of arbitrary values and compiler gaurantees? And wasn't the thought that check
by nsfyn55 14y ago
Java world -> Aren't checked exceptions just error codes that use types instead of arbitrary values and compiler gaurantees?
And wasn't the thought that checked exceptions would be better for critical code because the compiler guaranteed that they were handled.
I'm no fan of java's error handling, but I think that the insinuation that the lack of any formal error handling makes you write less error prone code is bordering on the absurd.
Detail oriented individuals write robust code given the constraints of their environment. If its arbitrary strings that indicate error state they use strings if its integer return codes they use integer return codes.