You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found annoying error handling in go. Namely, when you read below code you have to vocalize it to if error not nil then -which translates to if there is an error then.
iferr!=nil {
// handle error
}
I would like to have abbility of expresing above code in such way -which in my opinion is more readable.
iferr {
// handle error
}
Just my humble suggestion :)
The text was updated successfully, but these errors were encountered:
Adding language support for more ergonomic error handling is the topic of issue #21161 (there are already a few ideas posted, you can write there); let's keep all the discussion about this in that thread.
I found annoying error handling in go. Namely, when you read below code you have to vocalize it to
if error not nil then
-which translates toif there is an error then
.I would like to have abbility of expresing above code in such way -which in my opinion is more readable.
Just my humble suggestion :)
The text was updated successfully, but these errors were encountered: