-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeProposalProposal-Holderror-handlingLanguage & library change proposals that are about error handling.Language & library change proposals that are about error handling.
Milestone
Description
The Go2 proposal #32437 adds new syntax to the language to make the if err != nil { return ... }
boilerplate less cumbersome.
There are various alternative proposals: #32804 and #32811 as the original one is not universally loved.
To throw another alternative in the mix: Why not keep it as is?
I've come to like the explicit nature of the if err != nil
construct and as such I don't understand why we need new syntax for this. Is it really that bad?
cuonglm, mmaedel, mohammed90, dullgiulio, gerrit8143 and 2005 morecespare, pierrec, balasanjay, llorllale, MaxLogunovZ and 218 moresirkon, kvark, knocte, mtunjic, jesse-amano and 55 morematryer, jackman0, fmstephe, wellle, narqo and 163 morebigbellyburger, knocte, emwalker, maxpert, lulubudu and 17 moreshoenig, KlausVii, guygrigsby, bigwhite, dewey and 428 morejesse-amano, palash25, sirkon, as, jhernandezb and 64 moreas, jhernandezb, matbhz, wiliamsouza, Meligy and 25 more
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeProposalProposal-Holderror-handlingLanguage & library change proposals that are about error handling.Language & library change proposals that are about error handling.