2 ms·
I posted semi-coherent thoughts on golang-nuts [1], but the message got completely ignored as for constrains, say if we use decorator, then since T has to adhe
by tandr 6y ago
I posted semi-coherent thoughts on golang-nuts [1], but the message got completely ignored
as for constrains, say if we use decorator, then since T has to adhere to one interface only, func Max from your example could become
func Max(a, b $Comparable) $Comparable {
// ...
}
[1] https://groups.google.com/forum/#!topic/golang-nuts/Rp3yUUy2nS8 https://groups.google.com/forum/#!topic/golang-nuts/Rp3yUUy2...