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
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 <:
.)
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