Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> For one: terminating execution

Not if you handle the exception properly.

> why is having more than one account an "exception" at all? That's not an error or fail condition, at least in my mind.

Because you explicitly asked for "the" account, and your request is based on a false premise.

>why even have it then, when the multi-account one performs the exact same function, better, without an extra error condition that might arise?

Because other users of the library explicitly want that to be an error condition, and would rather not write the logic for it themselves.

Performance could factor into it, too, depending on implementation details that obviously I know nothing about.

Or for legacy reasons as described in https://news.ycombinator.com/item?id=44321644 .



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: