Re:Conc: Better Structured Concurrency for Go
by preseinger on Thursday January 12, 2023 @06:30PM
(#34361781)
Obviously `interface{}` values are not comparable?
[ Parent
| on HN ]
Re:Conc: Better Structured Concurrency for Go
by erik_seaberg on Thursday January 12, 2023 @08:48PM
(#34362953)
The comparison is explicitly allowed in the language spec, there’s no warning for doing it, and it often works depending on the types. It’s a data-dependent runtime error, which is usually hard to guarantee test coverage for.