Hacker News new | ask | show | jobs
by bulte-rs 3931 days ago
So this is why the golang community prefers:

    for c := range(ns) {
        // some blah
    }
1 comments

The golang community likes being safe:

  a, err := doFirstThing()
  if err != nil {
    return err
  }

  b, err := doSecondThing(a)
  if err != nil {
    return err
  }

  c, err := doThirdThing(b)
  if err != nil {
    return err
  }
until your keyboard keys go off.

(and I'm a happy gopher myself)