News for hackers. Stuff that matters.
Re:A concise guide to the latest Go generics draft design by tandr on Wednesday June 24, 2020 @07:17PM (#23634956)
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/Rp3yUUy2...

There are no comments on this comment yet.