News for hackers. Stuff that matters.
Re:The Next Step for Generics by ori_b on Wednesday June 17, 2020 @05:14PM (#23556859)
> It's about the default error handling method being sane.

Gorm isn't using the default error handling.

Re:The Next Step for Generics by apta on Wednesday June 17, 2020 @07:21PM (#23558019)
That's one point in this discussion. The language allows error handling that way. Compared to a language with proper sum types or exceptions, where one would have to actively work against the language to end up with that mess.
Re:The Next Step for Generics by ori_b on Wednesday June 17, 2020 @08:26PM (#23558471)
> That's one point in this discussion. The language allows error handling that way. Compared to a language with proper sum types or exceptions, where one would have to actively work against the language to end up with that mess.

I've seen a bunch of code that does the equivalent of the Java I posted above. Mostly when sending errors across the network.