{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T10:09:10Z","timestamp":1784196550944,"version":"3.55.0"},"reference-count":44,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","funder":[{"name":"MathInGreaterParis Fellowship Programme","award":["H2020-MSCA-COFUND2020"],"award-info":[{"award-number":["H2020-MSCA-COFUND2020"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2025,10,9]]},"abstract":"<jats:p>\n                    The merge operator is a powerful construct in programming languages, enabling flexible composition of various components such as functions, records, or classes. Unfortunately, its application often leads to ambiguity and non-determinism, especially when dealing with overlapping types. To prevent ambiguity, approaches such as disjoint intersection types have been proposed. However, disjointness imposes strict constraints to ensure determinism, at the cost of limiting expressiveness, particularly for function overloading. This paper introduces a novel concept called\n                    <jats:italic toggle=\"yes\">type apartness,<\/jats:italic>\n                    which relaxes the strict disjointness constraints, while maintaining type safety and determinism. Type apartness allows some overlap for overloaded functions as long as the calling contexts of those functions can be used to disambiguate upcasts in function calls. By incorporating the notion of guarded subtyping to prevent ambiguity when upcasting, our approach is the first to support\n                    <jats:italic toggle=\"yes\">function overloading, return type overloading, extensible records,<\/jats:italic>\n                    and\n                    <jats:italic toggle=\"yes\">nested composition<\/jats:italic>\n                    in a single calculus while preserving determinism. We formalize our calculi and proofs using Coq and prove their type soundness and determinism. Additionally, we demonstrate how type normalization and type difference provide more convenience and help resolve conflicts, enhancing the flexibility and expressiveness of the merge operator.\n                  <\/jats:p>","DOI":"10.1145\/3763057","type":"journal-article","created":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T08:49:50Z","timestamp":1759999790000},"page":"193-219","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Liberating Merges via Apartness and Guarded Subtyping"],"prefix":"10.1145","volume":"9","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-2548-6866","authenticated-orcid":false,"given":"Han","family":"Xu","sequence":"first","affiliation":[{"name":"Princeton University, Princeton, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8496-491X","authenticated-orcid":false,"given":"Xuejing","family":"Huang","sequence":"additional","affiliation":[{"name":"University of Hong Kong, Hong Kong, China"},{"name":"IRIF - Universit\u00e9 Paris Cit\u00e9, Paris, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1846-7210","authenticated-orcid":false,"given":"Bruno C. d. S.","family":"Oliveira","sequence":"additional","affiliation":[{"name":"University of Hong Kong, Hong Kong, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,10,9]]},"reference":[{"key":"e_1_3_2_2_1","doi-asserted-by":"crossref","unstructured":"Joao Alpuim Bruno C. d. S. Oliveira and Zhiyuan Shi. 2017. Disjoint Polymorphism. In European Symposium on Programming (ESOP) https:\/\/doi.org\/10.1145\/1391289.1391293","DOI":"10.1007\/978-3-662-54434-1_1"},{"key":"e_1_3_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/937563.937567"},{"key":"e_1_3_2_4_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1995.1086"},{"key":"e_1_3_2_5_1","doi-asserted-by":"publisher","DOI":"10.2307\/2273659"},{"key":"e_1_3_2_6_1","doi-asserted-by":"publisher","unstructured":"Xuan Bi and Bruno C. d. S. Oliveira. 2018. Typed First-Class Traits. In 32nd European Conference on Object-Oriented Programming (ECOOP 2018). doi:10.4230\/LIPIcs.ECOOP.2018.9","DOI":"10.4230\/LIPIcs.ECOOP.2018.9"},{"key":"e_1_3_2_7_1","doi-asserted-by":"publisher","unstructured":"Xuan Bi Bruno C. d. S. Oliveira and Tom Schrijvers. 2018. The Essence of Nested Composition. In 32nd European Conference on Object-Oriented Programming ECOOP 2018 July 16-21 2018 Amsterdam The Netherlands (LIPIcs Vol. 109) Todd D. Millstein (Ed.). Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik 22:1\u201322:33. doi:10.4230\/LIPIcs.ECOOP.2018.22","DOI":"10.4230\/LIPIcs.ECOOP.2018.22"},{"key":"e_1_3_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/97945.97982"},{"key":"e_1_3_2_9_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.l995.1033"},{"key":"e_1_3_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/2676726.2676991"},{"key":"e_1_3_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/2535838.2535840"},{"key":"e_1_3_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/2034773.2034788"},{"key":"e_1_3_2_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/351240.351259"},{"key":"e_1_3_2_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/232629.232654"},{"key":"e_1_3_2_15_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1995.1086"},{"key":"e_1_3_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/3450952"},{"key":"e_1_3_2_17_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45337-7_17"},{"key":"e_1_3_2_18_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2022.18"},{"key":"e_1_3_2_19_1","unstructured":"Kathleen Fisher and John Reppy. 2004. A typed calculus of traits. In Electronic proceedings of FOOL Vol. 2004."},{"key":"e_1_3_2_20_1","doi-asserted-by":"publisher","unstructured":"Matthew Flatt Shriram Krishnamurthi and Matthias Felleisen. 1998. Classes and mixins. In Proceedings of the 25th ACM SIGPLAN-SIGACT symposium on Principles of programming languages. 171\u2013183. doi:10.1145\/268946.268961","DOI":"10.1145\/268946.268961"},{"key":"e_1_3_2_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1391289.1391293"},{"key":"e_1_3_2_22_1","volume-title":"The 34th European Conference on Object-Oriented Programming (ECOOP 2020)","author":"Huang Xuejing","year":"2020","unstructured":"Xuejing Huang and Bruno C. d. S. Oliveira. 2020. A type-directed operational semantics for a calculus with a merge operator. In The 34th European Conference on Object-Oriented Programming (ECOOP 2020). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik GmbH. The Journal\u2019s web ...."},{"key":"e_1_3_2_23_1","doi-asserted-by":"crossref","unstructured":"Xuejing Huang Jinxu Zhao and Bruno C. d. S. Oliveira. 2021. Taming the Merge Operator. 31 (2021). doi:10.1017\/ S0956796821000186 Publisher: Cambridge University Press.","DOI":"10.1017\/S0956796821000186"},{"key":"e_1_3_2_24_1","unstructured":"Daan Leijen. 2004. First-class labels for extensible rows (technical report uu-cs-2004-51 ed.). Technical Report UU-CS-2004-51. https:\/\/www.microsoft.com\/en-us\/research\/publication\/first-class-labels-for-extensible-rows\/ UTCS Technical Report."},{"key":"e_1_3_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/197320.197383"},{"key":"e_1_3_2_26_1","doi-asserted-by":"publisher","DOI":"10.1093\/logcom\/9.1.105"},{"key":"e_1_3_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428274"},{"key":"e_1_3_2_28_1","doi-asserted-by":"publisher","unstructured":"Bruno C. d. S. Oliveira Zhiyuan Shi and Joao Alpuim. 2016. Disjoint intersection types. In International Conference on Functional Programming (ICFP). doi:10.1145\/2951913.2951945","DOI":"10.1145\/2951913.2951945"},{"key":"e_1_3_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/345099.345100"},{"key":"e_1_3_2_30_1","volume-title":"Preliminary design of the programming language Forsythe.","author":"Reynolds John C","year":"1988","unstructured":"John C Reynolds. 1988. Preliminary design of the programming language Forsythe.. Technical Report. Carnegie Mellon University."},{"key":"e_1_3_2_31_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-54415-1_70"},{"key":"e_1_3_2_32_1","doi-asserted-by":"crossref","unstructured":"John C Reynolds. 1997. Design of the programming language Forsythe. In ALGOL-like languages. 173\u2013233.","DOI":"10.1007\/978-1-4612-4118-8_9"},{"key":"e_1_3_2_33_1","doi-asserted-by":"publisher","DOI":"10.5555\/307999"},{"key":"e_1_3_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/3571211"},{"key":"e_1_3_2_35_1","doi-asserted-by":"crossref","unstructured":"Nathanael Sch\u00e4rli St\u00e9phane Ducasse Oscar Nierstrasz and Andrew P Black. 2003. Traits: Composable units of behaviour. In European Conference on Object-Oriented Programming (ECOOP).","DOI":"10.1007\/978-3-540-45070-2_12"},{"key":"e_1_3_2_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-73589-2-2"},{"key":"e_1_3_2_37_1","volume-title":"37th European Conference on Object-Oriented Programming (ECOOP 2023)","author":"Tan Jinhao","year":"2023","unstructured":"Jinhao Tan and Bruno C d S Oliveira. 2023. Dependent Merges and First-Class Environments. In 37th European Conference on Object-Oriented Programming (ECOOP 2023). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik."},{"key":"e_1_3_2_38_1","unstructured":"Philip Wadler. 1998. The expression problem. Java-genericity mailing list (1998)."},{"key":"e_1_3_2_39_1","first-page":"1","volume-title":"European Symposium on Programming","author":"Wadler Philip","year":"2009","unstructured":"Philip Wadler and Robert Bruce Findler. 2009. Well-typed programs can\u2019t be blamed. In European Symposium on Programming. Springer, 1\u201316."},{"key":"e_1_3_2_40_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2018.20"},{"key":"e_1_3_2_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3571224"},{"key":"e_1_3_2_42_1","doi-asserted-by":"publisher","unstructured":"Han Xu Xuejing Huang and Bruno C. d. S. Oliveira. 2025. Liberating Merges via Apartness and Guarded Subtyping (Artifact) doi: 10.5281\/zenodo.16921686","DOI":"10.5281\/zenodo.16921686"},{"key":"e_1_3_2_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-21037-2_8"},{"key":"e_1_3_2_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/3689782"},{"key":"e_1_3_2_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/3460228"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3763057","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T10:00:35Z","timestamp":1784196035000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3763057"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,9]]},"references-count":44,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2025,10,9]]}},"alternative-id":["10.1145\/3763057"],"URL":"https:\/\/doi.org\/10.1145\/3763057","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,10,9]]},"assertion":[{"value":"2024-10-15","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-08-12","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-10-09","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}