Re: [go-nuts] Re: Generics and parentheses

2020-07-16 Thread jpap
e think. I'm happy to see generics progressing in Go and can't wait to use it either way. [[T]] -- https://go2goplay.golang.org/p/NXqVM89QFor [T] -- https://go2goplay.golang.org/p/L9AKNHxPkUU jpap On Thursday, 16 July 2020 at 13:19:10 UTC-7 Carla Pfaff wrote: > Generics are not the m

Re: [go-nuts] Re: Generics and parentheses

2020-07-16 Thread jpap
es with the existing bit-shift operator, just as is ambiguous with the comparison operator. The burden of typing the same character twice on a keyboard in quick succession for [[T]] is more or less the same as the single-character version [T] and less so than two-character delimiters like <:

[go-nuts] Re: Generics and parentheses

2020-07-15 Thread jpap
.) On the whole, I prefer [[...]] over |...| over [...] over (...), but would also prefer that type declarations stick out easily enough. jpap PS. An example from Matt Layher <https://mdlayher.com/blog/go-generics-draft-design-building-a-hashtable/>, rewritten using vertical bars: // Pac