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

> And it would be far more obvious that an error message is being ignored.

Haven't used Go so maybe I'm missing some consideration, but I don't see how ", _" is more obvious than ".unwrap()". If anything it seems less clear, since you need to check/know the function's signature to see that it's an error being ignored (wouldn't be the case for a function like https://pkg.go.dev/math#Modf).





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

Search: