News for hackers. Stuff that matters.
Re:Learn Go in five minutes by simias on Tuesday January 05, 2021 @01:46PM (#25649219)
Go uses compiler magic to have effectively generic collections, why not hardcode a Result type in the same fashion? It's not very elegant, but it's pragmatic and error handling is important enough that it may well warrant it.
Re:Learn Go in five minutes by autarch on Tuesday January 05, 2021 @05:34PM (#25652159)
Yeah, that's a fair point. I imagine this could be better than what's there now.