News for hackers. Stuff that matters.
Re:Small introduction to tags in Go by asdfasdfasjkl on Wednesday July 22, 2015 @03:22AM (#9928159)
// VerifyPassword checks if password is valid and upgrades it if its encrypting scheme was outdated // Returns isValid, wasUpdated, error

func (a *Account) VerifyPassword(password string) (bool, bool, error) {

this is why we need sum types people

Re:Small introduction to tags in Go by chrisbroadfoot on Wednesday July 22, 2015 @03:50AM (#9928232)
or just named return values

  func (a *Account) VerifyPassword(password string) (isValid, wasUpdated bool, err error) {