News for hackers. Stuff that matters.
Re:Trying Out Generics in Go by topicseed on Thursday December 16, 2021 @01:56PM (#29582240)
What would you like for error handling?
Re:Trying Out Generics in Go by spion on Thursday December 16, 2021 @02:49PM (#29582960)
See Swift for a much more reasonable way to do error handling https://docs.swift.org/swift-book/LanguageGuide/ErrorHandlin...
Re:Trying Out Generics in Go by pkaye on Thursday December 16, 2021 @02:34PM (#29582728)
Personally I think the documentation should enumerate all the error types returned by functions.
Re:Trying Out Generics in Go by eweise on Friday December 17, 2021 @01:09AM (#29588496)
Either[E error,A any]