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

Is that a good thing?

Yes, because instead your program won’t compile if you forget to handle an error ( except in the case of a function which only returns error, which you can ignore by mistake - I would like to see that fixed in go 2 as well).



Expect to see a lot of `_, _ = fmt.Println(...)`, then.


Since they’re calling it go 2 perhaps they could just make an exception for println by having an alternative with no error (like map access with k,ok or just k).




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

Search: