Hacker News new | past | comments | ask | show | jobs | submit login

Or worse. Some library developer decided that "panic()" was the way to go rather than:

    return nil, err
I'm fine with error values or Pythonesque exceptions, just not both combined.

So much of my code is typically:

    result, err := someFunc()
    if err != nil {
       return nil, err
    }
Most error conditions are basically unrecoverable anyway.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: