proposal: Go 2: add ? or ?() to the golang to handle the err return #66309
Labels
error-handling
Language & library change proposals that are about error handling.
FrozenDueToAge
LanguageChange
Suggested changes to the Go language
Proposal
v2
An incompatible library change
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Proposal Details
The ? can be ? or ?-> or ?! or some other symbol not using in golang before.
The ? can means if anything != nil ...
you can also add ?() to handle err return.
for example:
The text was updated successfully, but these errors were encountered: