News for hackers. Stuff that matters.
Re:Things I Was Wrong About: Types by lolinder on Monday September 28, 2020 @02:22PM (#24619735)
Yes, this. Sum types in most languages are approximated by something like kotlin's sealed classes. Sometimes you don't want to declare a whole new class hierarchy, you just want to say "this function can either return this or this".

There are no comments on this comment yet.