{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T07:49:08Z","timestamp":1790927348755,"version":"4.1.0"},"reference-count":75,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2017,10,12]],"date-time":"2017-10-12T00:00:00Z","timestamp":1507766400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2017,10,12]]},"abstract":"<jats:p>Parametric polymorphism and inheritance are both important, extensively explored language mechanisms for providing code reuse and extensibility. But harmoniously integrating these apparently distinct mechanisms\u2014and powerful recent forms of them, including type classes and family polymorphism\u2014in a single language remains an elusive goal. In this paper, we show that a deep unification can be achieved by generalizing the semantics of interfaces and classes. The payoff is a significant increase in expressive power with little increase in programmer-visible complexity. Salient features of the new programming language include retroactive constraint modeling, underpinning both object-oriented programming and generic programming, and module-level inheritance with further-binding, allowing family polymorphism to be deployed at large scale. The resulting mechanism is syntactically light, and the more advanced features are transparent to the novice programmer. We describe the design of a programming language that incorporates this mechanism; using a core calculus, we show that the type system is sound. We demonstrate that this language is highly expressive by illustrating how to use it to implement highly extensible software and by showing that it can not only concisely model state-of-the-art features for code reuse, but also go beyond them.<\/jats:p>","DOI":"10.1145\/3133894","type":"journal-article","created":{"date-parts":[[2017,10,13]],"date-time":"2017-10-13T11:15:45Z","timestamp":1507893345000},"page":"1-31","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":7,"title":["Familia: unifying interfaces, type classes, and family polymorphism"],"prefix":"10.1145","volume":"1","author":[{"given":"Yizhou","family":"Zhang","sequence":"first","affiliation":[{"name":"Cornell University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Andrew C.","family":"Myers","sequence":"additional","affiliation":[{"name":"Cornell University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2017,10,12]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/233561.233563"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/237721.237809"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.5555\/577958"},{"key":"e_1_2_2_4_1","volume-title":"Compilers: Principles, Techniques, and Tools","author":"Aho A. V.","year":"2006","unstructured":"A. V. Aho, M. S. Lam, R. Sethi, and J. D. Ullman. Compilers: Principles, Techniques, and Tools (2nd Edition). Addison-Wesley Longman Publishing Co., Inc., 2006.","edition":"2"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/11687061_5"},{"key":"e_1_2_2_6_1","series-title":"LNCS","first-page":"94","volume-title":"A List of Successes That Can Change the World","author":"Black A. P.","unstructured":"A. P. Black, K. B. Bruce, and R. J. Noble. The essence of inheritance. In A List of Successes That Can Change the World, volume 9600 of LNCS, pages 73\u201394. Springer, Mar. 2016."},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-14107-2_20"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1999.2829"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796800001039"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24851-4_18"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0053376"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0054106"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/641888.641891"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/99370.99392"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(88)90007-7"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1086365.1086397"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1040305.1040306"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0053029"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1218563.1218578"},{"key":"e_1_2_2_20_1","volume-title":"Languages and Applications (OOPSLA)","author":"Cook W.","year":"1989","unstructured":"W. Cook and J. Palsberg. A denotational semantics of inheritance and its correctness. In 4 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), 1989."},{"key":"e_1_2_2_21_1","first-page":"572","volume-title":"Languages and Applications (OOPSLA)","author":"Cook W. R.","year":"2009","unstructured":"W. R. Cook. On understanding data abstraction, revisited. In 24 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 557\u2013572, 2009."},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/96709.96721"},{"key":"e_1_2_2_23_1","volume-title":"Conf. on Functional Programming","author":"Devriese D.","year":"2011","unstructured":"D. Devriese and F. Piessens. On the bright side of type classes: Instance arguments in Agda. In 16 th ACM SIGPLAN Int\u2019l Conf. on Functional Programming, 2011."},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1190216.1190229"},{"key":"e_1_2_2_25_1","doi-asserted-by":"crossref","unstructured":"E. Ernst. gbeta\u2014a Language with Virtual Attributes Block Structure and Propagating Dynamic Inheritance. PhD thesis Department of Computer Science University of Aarhus Aarhus Denmark 1999.","DOI":"10.7146\/dpb.v29i549.7654"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45337-7_17"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1111037.1111062"},{"key":"e_1_2_2_28_1","volume-title":"The Java Language Specification","author":"Gosling J.","year":"2005","unstructured":"J. Gosling, B. Joy, G. Steele, and G. Bracha. The Java Language Specification. Addison Wesley, 3nd edition, 2005.","edition":"3"},{"key":"e_1_2_2_29_1","first-page":"99","volume-title":"Getting F-bounded polymorphism into shape. In 35 th ACM SIGPLAN Conf. on Programming Language Design and Implementation (PLDI)","author":"Greenman B.","year":"2014","unstructured":"B. Greenman, F. Muehlboeck, and R. Tate. Getting F-bounded polymorphism into shape. In 35 th ACM SIGPLAN Conf. on Programming Language Design and Implementation (PLDI), pages 89\u201399, 2014."},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009871"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.5555\/186677"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-48743-3_8"},{"key":"e_1_2_2_33_1","first-page":"132","volume-title":"Languages and Applications (OOPSLA)","author":"Igarashi A.","year":"2007","unstructured":"A. Igarashi and M. Viroli. Variant path types for scalable extensibility. In 22 nd ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 113\u2013132, 2007."},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/503502.503505"},{"key":"e_1_2_2_35_1","volume-title":"Languages and Applications (OOPSLA)","author":"J\u00e4rvi J.","year":"2005","unstructured":"J. J\u00e4rvi, J. Willcock, and A. Lumsdaine. Associated types and constraint propagation for mainstream object-oriented generics. In 20 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), 2005."},{"key":"e_1_2_2_36_1","volume-title":"ECOOP Workshop on Formal Techniques for Java Programs (FTfJP)","author":"Jolly P.","year":"2004","unstructured":"P. Jolly, S. Drossopoulou, C. Anderson, and K. Ostermann. Simple dependent types: Concord. In ECOOP Workshop on Formal Techniques for Java Programs (FTfJP), June 2004."},{"key":"e_1_2_2_37_1","volume-title":"Haskell Workshop","author":"Jones S. P.","year":"1997","unstructured":"S. P. Jones, M. Jones, and E. Meijer. Type classes: an exploration of the design space. In Haskell Workshop, 1997."},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/800022.808322"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.5555\/1361"},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/800055.802036"},{"key":"e_1_2_2_41_1","first-page":"131","volume-title":"Languages and Applications (OOPSLA)","author":"Madsen O. L.","year":"1999","unstructured":"O. L. Madsen. Semantic analysis of virtual classes and nested classes. In 14 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 114\u2013131, Nov. 1999."},{"key":"e_1_2_2_42_1","first-page":"406","volume-title":"Languages and Applications (OOPSLA)","author":"Madsen O. L.","year":"1989","unstructured":"O. L. Madsen and B. M\u00f8ller-Pedersen. Virtual classes: A powerful mechanism for object-oriented programming. In 4 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 397\u2013406, Oct. 1989."},{"key":"e_1_2_2_43_1","volume-title":"Object Oriented Programming in the BETA Programming Language","author":"Madsen O. L.","year":"1993","unstructured":"O. L. Madsen, B. M\u00f8ller-Pedersen, and K. Nygaard. Object Oriented Programming in the BETA Programming Language. Addison-Wesley, June 1993."},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90014-4"},{"key":"e_1_2_2_45_1","volume-title":"Languages and Applications (OOPSLA)","author":"Moors A.","year":"2008","unstructured":"A. Moors, F. Piessens, and M. Odersky. Generics of a higher kind. In 23 rd ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), 2008."},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-03811-6"},{"key":"e_1_2_2_47_1","first-page":"115","volume-title":"Languages and Applications (OOPSLA)","author":"Nystrom N.","year":"2004","unstructured":"N. Nystrom, S. Chong, and A. C. Myers. Scalable extensibility via nested inheritance. In 19 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 99\u2013115, Oct. 2004."},{"key":"e_1_2_2_48_1","first-page":"36","volume-title":"Languages and Applications (OOPSLA)","author":"Nystrom N.","year":"2006","unstructured":"N. Nystrom, X. Qi, and A. C. Myers. J&amp;: Nested intersection for scalable software composition. In 21 st ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 21\u201336, Oct. 2006."},{"key":"e_1_2_2_49_1","first-page":"57","volume-title":"Languages and Applications (OOPSLA)","author":"Odersky M.","year":"2005","unstructured":"M. Odersky and M. Zenger. Scalable component abstractions. In 20 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 41\u201357, Oct. 2005."},{"key":"e_1_2_2_50_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-45070-2_10"},{"key":"e_1_2_2_51_1","first-page":"360","volume-title":"Languages and Applications (OOPSLA)","author":"Oliveira B. C.","year":"2010","unstructured":"B. C. Oliveira, A. Moors, and M. Odersky. Type classes as objects and implicits. In 25 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 341\u2013360, 2010."},{"key":"e_1_2_2_52_1","doi-asserted-by":"publisher","unstructured":"K. Ostermann. Dynamically composable collaborations with delegation layers. In 16 th European Conf. on Object-Oriented Programming volume 2374 of Lecture Notes in Computer Science pages 89\u2013110 2002. 10.1007\/3-540-47993-7_4","DOI":"10.1007\/3-540-47993-7_4"},{"key":"e_1_2_2_53_1","volume-title":"Haskell antipattern: Existential typeclass. https:\/\/lukepalmer.wordpress.com\/2010\/01\/24\/ haskell- antipattern- existential- typeclass","author":"Palmer L.","year":"2010","unstructured":"L. Palmer. Haskell antipattern: Existential typeclass. https:\/\/lukepalmer.wordpress.com\/2010\/01\/24\/ haskell- antipattern- existential- typeclass , 2010."},{"key":"e_1_2_2_54_1","volume-title":"but not as we know them\u2014type classes in Haskell: What, why, and whither. In 23 rd European Conf. on Object-Oriented Programming","author":"Jones S. Peyton","year":"2009","unstructured":"S. Peyton Jones. Classes, Jim, but not as we know them\u2014type classes in Haskell: What, why, and whither. In 23 rd European Conf. on Object-Oriented Programming, 2009."},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(96)00096-5"},{"key":"e_1_2_2_56_1","first-page":"538","volume-title":"Languages and Applications (OOPSLA)","author":"Qi X.","year":"2010","unstructured":"X. Qi and A. C. Myers. Homogeneous family sharing. In 25 th ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), pages 520\u2013538, Oct. 2010."},{"key":"e_1_2_2_57_1","first-page":"168","volume-title":"New Directions in Algorithmic Languages","author":"Reynolds J. C.","unstructured":"J. C. Reynolds. User-defined types and procedural data structures as complementary approaches to data abstraction. In S. A. Schuman, editor, New Directions in Algorithmic Languages, pages 157\u2013168. Institut de Recherche d\u2019Informatique et d\u2019Automatique, Le Chesnay, France, 1975. Reprinted in [ Gunter and Mitchell 1994 ], pages 13\u201323."},{"key":"e_1_2_2_58_1","unstructured":"Rust 2014. Rust programming language. http:\/\/doc.rust-lang.org\/0.11.0\/rust.html 2014."},{"key":"e_1_2_2_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/2888392"},{"key":"e_1_2_2_60_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2008.09.009"},{"key":"e_1_2_2_61_1","doi-asserted-by":"publisher","DOI":"10.1145\/505145.505148"},{"key":"e_1_2_2_62_1","unstructured":"B. Stroustrup. The C++ Programming Language. Addison-Wesley 1987."},{"key":"e_1_2_2_63_1","volume-title":"Dr. Dobbs","author":"Stroustrup B.","year":"2009","unstructured":"B. Stroustrup. The C++0x \u201cremove concepts\u201d decision. Dr. Dobbs, July 2009."},{"key":"e_1_2_2_64_1","volume-title":"Swift programming language. https:\/\/developer.apple.com\/swift\/resources","author":"Swift","year":"2014","unstructured":"Swift 2014. Swift programming language. https:\/\/developer.apple.com\/swift\/resources , 2014."},{"key":"e_1_2_2_65_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0053390"},{"key":"e_1_2_2_66_1","volume-title":"5th Workshop on Foundations of Object-Oriented Languages (FOOL)","author":"Torgersen M.","year":"1998","unstructured":"M. Torgersen. Virtual types are statically safe. In 5th Workshop on Foundations of Object-Oriented Languages (FOOL), Jan. 1998."},{"key":"e_1_2_2_67_1","doi-asserted-by":"publisher","DOI":"10.1145\/967900.968162"},{"key":"e_1_2_2_68_1","doi-asserted-by":"publisher","DOI":"10.1145\/75277.75283"},{"key":"e_1_2_2_69_1","volume-title":"Dec.","author":"P. Wadler","year":"1998","unstructured":"P. Wadler et al. The expression problem, Dec. 1998. Discussion on Java-Genericity mailing list."},{"key":"e_1_2_2_70_1","volume-title":"Languages and Applications (OOPSLA)","author":"Warth A.","year":"2006","unstructured":"A. Warth, M. Stanojevi\u0107, and T. Millstein. Statically scoped object adaptation with expanders. In 21 st ACM SIGPLAN Conf. on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA), Oct. 2006."},{"key":"e_1_2_2_71_1","doi-asserted-by":"publisher","DOI":"10.1145\/1985342.1985343"},{"key":"e_1_2_2_72_1","doi-asserted-by":"publisher","DOI":"10.1145\/2637647.2637654"},{"key":"e_1_2_2_73_1","unstructured":"A. K. Wright and M. Felleisen. A syntactic approach to type soundness. Technical Report TR91-160 Rice University 1992."},{"key":"e_1_2_2_74_1","unstructured":"Y. Zhang M. C. Loring G. Salvaneschi B. Liskov and A. C. Myers. Genus: Making generics object-oriented expressive and lightweight. Technical Report 1813\u201339910 Cornell University Computing and Information Science June 2015a."},{"key":"e_1_2_2_75_1","first-page":"445","volume-title":"Lightweight, flexible object-oriented generics. In 36 th ACM SIGPLAN Conf. on Programming Language Design and Implementation (PLDI)","author":"Zhang Y.","year":"2015","unstructured":"Y. Zhang, M. C. Loring, G. Salvaneschi, B. Liskov, and A. C. Myers. Lightweight, flexible object-oriented generics. In 36 th ACM SIGPLAN Conf. on Programming Language Design and Implementation (PLDI), pages 436\u2013445, June 2015b."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3133894","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3133894","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,10]],"date-time":"2026-09-10T16:11:18Z","timestamp":1789056678000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3133894"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,10,12]]},"references-count":75,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2017,10,12]]}},"alternative-id":["10.1145\/3133894"],"URL":"https:\/\/doi.org\/10.1145\/3133894","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2017,10,12]]},"assertion":[{"value":"2017-10-12","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}