On Sat, 2020-08-22 at 06:00 +0100, Paul Jolly wrote:
> I think you were unlucky with your choice of type to experiment with.
> My understanding is that byte is special cased, despite being an
> alias:
> 
> 
https://github.com/golang/go/blob/13e41bcde8c788224f4896503b56d42614e0bf97/src/go/types/universe.go#L25
> 
> Consider instead https://play.golang.org/p/MHjgBvbOG__G

Thanks, Paul.

Not so much unlucky as attempting to find the worst case so that all
others work as well when it's solved.

That snippet is helpful, but given https://golang.org/issue/40965 I'm
concerned user defined aliases will suffer the same issue when it's
resolved.

Dan



-- 
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/b9a91d449fcf89275c8310615b1f3199a2e51336.camel%40kortschak.io.

Reply via email to