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 to defining subtyping relation based on set-theoretic models, 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 the framework can also accommodate the nominal subtyping. Several examples show the expressivity and the practical advantages of our proposal.

Semantic Subtyping for Objects and Classes / Ornela Dardha; Daniele Gorla; Daniele Varacca. - ELETTRONICO. - 7892:(2013), pp. 66-82. (Intervento presentato al convegno Formal Techniques for Distributed Systems - Joint {IFIP} {WG} 6.1 International Conference FORTE/FMOODS tenutosi a Firenze nel 3-5/6/2013) [10.1007/978-3-642-38592-6_6].

Semantic Subtyping for Objects and Classes

DARDHA, ORNELA;
2013

Abstract

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 to defining subtyping relation based on set-theoretic models, 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 the framework can also accommodate the nominal subtyping. Several examples show the expressivity and the practical advantages of our proposal.
2013
Lecture Notes in Computer ScienceFormal Techniques for Distributed Systems
66
82
Semantic Subtyping for Objects and Classes / Ornela Dardha; Daniele Gorla; Daniele Varacca. - ELETTRONICO. - 7892:(2013), pp. 66-82. (Intervento presentato al convegno Formal Techniques for Distributed Systems - Joint {IFIP} {WG} 6.1 International Conference FORTE/FMOODS tenutosi a Firenze nel 3-5/6/2013) [10.1007/978-3-642-38592-6_6].
Ornela Dardha; Daniele Gorla; Daniele Varacca
File in questo prodotto:
Eventuali allegati, non sono esposti

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11585/418186
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 6
  • ???jsp.display-item.citation.isi??? 4
social impact