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

OTOH, I think is part of the point:

  > file, err = os.Open("file.txt")
  > if err != nil {
  > ... handle error ...
A type system with generics can use types to make an error a different type and produce a compile error if you don't handle the case without making the code more complex.



Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: