In proceedings details

  • Featherweight Go
  • Nov 2020
  • We describe a design for generics in Go inspired by previous work on Featherweight Java by Igarashi, Pierce, and Wadler. Whereas subtyping in Java is nominal, in Go it is structural, and whereas generics in Java are defined via erasure, in Go we use monomorphisation. Although monomorphisation is widely used, we are one of the first to formalise it. Our design also supports a solution to The Expression Problem.
  • Bernardo Toninho, Nobuko Yoshida, Robert Griesemer, Philip Wadler, Ian Lance Taylor, Wen Kokke, Raymond Hu, Julien Lange
  • https://dl.acm.org/doi/10.1145/3428217
  • 1 Nov 2020