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

In order to maintain compatibility with other interfaces, they have to return error in several places. Take bytes.Buffer, which return errors even when they are impossible. Same with http.Cookie(). It promises it will only ever be http.ErrNoCookie, but that isn't going to make static analysis tools happy.


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

Search: