proposal: spec: error handling with check err #69173
Labels
error-handling
Language & library change proposals that are about error handling.
LanguageChange
Suggested changes to the Go language
LanguageChangeReview
Discussed by language change review committee
Proposal
Milestone
Go Programming Experience
Intermediate
Other Languages Experience
js,java
Related Idea
Has this idea, or one like it, been proposed before?
yes
I've seen something similar proposed before (I forget where), but it's a little different
Does this affect error handling?
yes
Is this about generics?
no
Proposal
before:
after:
check err
is exactly the same as the following codeif err != nil {
return nil..., err
}
Language Spec Changes
No response
Informal Change
No response
Is this change backward compatible?
y
Orthogonality: How does this change interact or overlap with existing features?
No response
Would this change make Go easier or harder to learn, and why?
No response
Cost Description
No response
Changes to Go ToolChain
No response
Performance Costs
No response
Prototype
No response
The text was updated successfully, but these errors were encountered: