Semantic subtyping for objects and classes

01 Pubblicazione su rivista
Dardha Ornela, Gorla Daniele, Varacca Daniele
ISSN: 0010-4620

In this paper, we propose an integration of structural subtyping with boolean connectives and semantic subtyping to define a Java-like programming language that exploits the benefits of both techniques. Semantic subtyping is an approach for defining subtyping relation based on set-theoreticmodels, rather than syntactic rules. On the one hand, this approach involves some non-trivial mathematical machinery in the background. On the other hand, final users of the language need not know this machinery and the resulting subtyping relation is very powerful and intuitive. While semantic subtyping is naturally linked to the structural one, we show how our framework can also accommodate the nominal subtyping. Several examples show the expressivity and the practical advantages of our proposal

© Università degli Studi di Roma "La Sapienza" - Piazzale Aldo Moro 5, 00185 Roma