Re:Conc: Better Structured Concurrency for Go
by mappu on Monday January 23, 2023 @01:11AM
(#34486042)
This is days later, sorry, but - you can't use an interface as a map key, so this shouldn't apply, right?
[ Parent
| on HN ]
Re:Conc: Better Structured Concurrency for Go
by erik_seaberg on Thursday January 26, 2023 @11:02PM
(#34542303)
https://go.dev/ref/spec#Map_types says that is allowed.
> If the key type is an interface type, these comparison operators must be defined for the dynamic key values; failure will cause a run-time panic.