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.
LanguageChange
Proposal
v2
A language change or 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: