Operator constraints in Go

May 24, 2022

https://blog.merovius.de/posts/2022-05-23-operator-constraints/

Let’s say you want to implement a sorting function in Go. Or perhaps a data structure like a binary search tree, providing ordered access to its elements. Because you want your code to be re-usable and type safe, you want to use type parameters. So you need a way to order user-provided types.

↑ up