Radar · Go · Archive · Week 38 · Sep 14 – 20, 2026
go/types: add StrictlyComparable function
Worth knowingstdlib
- What changed
- A new function
StrictlyComparable(T Type) boolwas added togo/types. It reports whether values of typeTare strictly comparable, as defined by the Go spec. - Production impact
- The source does not say.
- Try it
- Use
go/typesto analyze a type and callStrictlyComparableto see if it returns true. - Source
- github.com/golang/go/issues/72059
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed