Proceedings of the ACM on Programming Languages · 2020 · 17 citations · 19 references
ComputingComputer ScienceFormal MethodsProgramming LanguagesSyntaxAbstract Syntax TreesData-flow AnalysisDomain-specific LanguagesGeneric ProgrammingType CheckingType SystemsGeneric TypesGenericityGenerics ImplementationStatic PolymorphismStatic Type CheckingStructural Typing
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.
19
Making the future safe for the past
Gilad Bracha, Martin Odersky, David Stoutamire et al. · 1998 · 503 citations · Full text
F-bounded polymorphism for object-oriented programming
Peter S. Canning, William R. Cook, Walter L. Hill et al. · 1989 · 330 citations
Wouter Swierstra · Journal of Functional Programming · 2008 · 282 citations · Full text
Atsushi Igarashi, Benjamin C. Pierce, Philip Wadler · 1999 · 274 citations