Hacker News new | past | comments | ask | show | jobs | submit login

Yes, it is the same situation. No, we don't tend to use unique names for errors. The idiom is just too strong.

This is somewhat mitigated by consistent consecutive error handling, meaning you always immediately dispatch an error on the line after assigning it. Every time we have had bugs because of this, it's because someone tried to be clever and delay handling an error until slightly later (like at the end of an if else chain where each branch might have had an error).




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

Search: