News for hackers. Stuff that matters.
Re:Practical nil panic detection for Go by the_gipsy on Sunday November 19, 2023 @03:35AM (#38330507)
But it does not!

    var g Gender
    // ok so far, it's 0 which happens to be the first iota value.
    if err := json.Unmarshal("99", &g); err != nil { panic(err) }
    // no error and g is Gender(99)
Go is simple and gets you going fast... but later makes you stop and go back too much.

There are no comments on this comment yet.