On July 12, 2019 4:35:54 AM UTC, Andrey Tcherepanov 
<xnow4fippy...@sneakemail.com> 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/2858C8AA-F25B-4415-A8D4-753DA679EC27%40samwhited.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to