Hacker News new | ask | show | jobs
by Zababa 1747 days ago
> There's just no error handling needed to begin with, except right at the end, if the number is not in any of the three supported formats.

I would argue that if (!result) is a form of error handling, as result being falsy indicates that the parsing failed.