3 ms·
Fail fast, fail often isn't just about the business. It's about code too. If the palindrome function does not support unicode correctly, it can: 1. Try to f
by snarfy 10y ago
Fail fast, fail often isn't just about the business. It's about code too.
If the palindrome function does not support unicode correctly, it can:
1. Try to function anyway, return true/false even without a real match
2. Detect unicode and always return false
3. Throw an exception
It would be best to throw an exception. Why is a function that doesn't support unicode being called with unicode input? That's the real error.