Thanks Sam, I haven't seen your proposal before, but it looks interesting - you seem to have put quite a thought into it already.
Funny how these seems to be far-sided things - error handling, generics, sum types - are coming all related to each other at the end of the day... Andrey On Friday, July 12, 2019 at 12:22:42 AM UTC-6, Sam Whited wrote: > > > > On July 12, 2019 4:35:54 AM UTC, Andrey Tcherepanov < > xnow4f...@sneakemail.com <javascript:>> wrote: > >What these guys are proposing in that paper would be closer to > >(Go-style) > >func f() (v value | e error) { ... } > > > >(where "|" could be read as "or" or "union") > > > > I've thought a tiny bit about how union or sum types would work in Go > using a similar syntax. My initial thoughts are here in case this is of > interest to anyone else: > > https://blog.samwhited.com/2019/06/go-and-sum-types/ > > —Sam > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/901bda6a-38a8-4213-9516-68e24dc6b440%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.