Skip to content

Instantly share code, notes, and snippets.

View klaidliadon's full-sized avatar
🐲
Warriors code

Alex - アレックス klaidliadon

🐲
Warriors code
View GitHub Profile
@klaidliadon
klaidliadon / proposal.md
Created June 13, 2019 09:27
Go error handling

Proposal

This proposal aims to reduce the boilerplate of basic error handling by introducing a new identifier.

We will use ? in this proposal, which will behave as follows: when a error is assigned to ? the function would returns immediately with the error received.

As for the other variables their values would be:

  • if they are not named zero value

Keybase proof

I hereby claim:

  • I am KlaidLiadon on github.
  • I am klaidliadon (https://keybase.io/klaidliadon) on keybase.
  • I have a public key whose fingerprint is 3E5C FA2A 6773 7E10 05E5 3A28 0CEF 3C45 581A FF95

To claim this, I am signing this object: