4 ms·
This! Java is hugely overusing exceptions for reporting situations that are completely normal (probably because it didn't have anything like Option type or any
by smsm42 8y ago
This! Java is hugely overusing exceptions for reporting situations that are completely normal (probably because it didn't have anything like Option type or any way to return error results). Exception should be for "somebody stole our HD and we can't read data" or "database have died and we can't continue, all panic!", not for "user made a typo and we need to display an error message". Using exceptions for routine flow control is bad design.