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

Id rather have data in a generic error type than no data in a specific error type.

How useful is a file not found error type without data (the filename) when the program is looking for 50 files? Not very.

How useful is a generic error type with '{filename} not found' as generic string data packed in? Quite.



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

Search: