Y
Hacker News
new
|
ask
|
show
|
jobs
by
preseinger
1258 days ago
Obviously `interface{}` values are not comparable?
1 comments
erik_seaberg
1258 days ago
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.
link