News for hackers. Stuff that matters.

flip_rect_red

Re:Why I love Go on Wednesday December 06, 2017 @02:56AM (#15859356)
it appeared to be a typo, and as you suggest the compiler caught it

    var foo *Foo
    var err error
    if foo, err = getFoo(); err != nil {
        return nil, err
    } 
    //foo is usable now