On Wed, Feb 16, 2022 at 5:31 PM Jochen Voss wrote:
> To me it is not intuitive why "comparable" is built intro the language but
> "Ordered" is in an external package.
Quoting rogpepe from elsewhere:
because there's no way to define comparable as a type constraint, but
you can do that
Dear all,
Today I tried out the new generics support in Go for the first time by
implementing Dijkstra's algorithm for the shortest path in a directed
graph. In case it's interesting to somebody, here are my impressions, code
is at https://github.com/seehuhn/go-dijkstra .
The key parts of my