On Fri, 12 Jul 2019, 07:22 Sam Whited, <s...@samwhited.com> wrote:

>
>
> 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/


As far as I can tell, that's almost identical to the scheme that I
suggested here:
https://github.com/golang/go/issues/19412#issuecomment-288485048


>
> —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.
>

-- 
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/CAJhgacjNskL%3DCO%2Bux0NqLptUZdse9ZX6T-Tsd4fTgnK%2BXv8yxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to