Re: [go-nuts] Re: [generics] Fuzzer, Type Switches

2020-07-20 Thread Jake Montgomery
On Sunday, July 19, 2020 at 1:44:49 PM UTC-4, Steven Blenkinsop wrote: > > On Sun, Jul 19, 2020 at 11:43 AM, Jake Montgomery > wrote: > >> This seems to work: https://go2goplay.golang.org/p/8veymwXYCoZ >> >> >> I'm confused. It panics when I run it now. >> > > Since the outcome is probably

Re: [go-nuts] Re: [generics] Fuzzer, Type Switches

2020-07-19 Thread Steven Blenkinsop
On Sun, Jul 19, 2020 at 11:43 AM, Jake Montgomery wrote: > This seems to work: https://go2goplay.golang.org/p/8veymwXYCoZ > > > I'm confused. It panics when I run it now. > Since the outcome is probably cached, I'm not sure how that could be the case. Did you mean to respond to Ian's modified

[go-nuts] Re: [generics] Fuzzer, Type Switches

2020-07-19 Thread Jake Montgomery
> > This seems to work: https://go2goplay.golang.org/p/8veymwXYCoZ I'm confused. It panics when I run it now. > -- 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

[go-nuts] Re: [generics] Fuzzer, Type Switches

2020-07-17 Thread 'Carla Pfaff' via golang-nuts
Why not write two functions? On Friday, 17 July 2020 at 21:36:38 UTC+2 jrh...@gmail.com wrote: > I was playing around with trying to use generics to de-interface-ify a > fuzzer implementation, and I ran into some stumbling blocks. > > is it possible to perform type switches? It seems the answer