In this paper we figure out the future of intersection types in Java developments. In our vision, the current use of intersection types will be extended in two directions. Firstly, intersections will be allowed to appear as types of fields, types of formal parameters and return values of methods, therefore they will be significantly used as target types for -expressions anywhere. Secondly, the notion of functional interface will be extended to any intersection of interfaces, including also several abstract methods with different signatures. We formalise our proposal through a minimal Java core extended with these novel features and we prove the type safety property.

Intersection Types in Java: Back to the Future / Dezani-Ciancaglini M., Giannini P., Venneri B.. - STAMPA. - (2019), pp. 68-86. [10.1007/978-3-030-22348-9_6]

Intersection Types in Java: Back to the Future

Venneri B.
2019

Abstract

In this paper we figure out the future of intersection types in Java developments. In our vision, the current use of intersection types will be extended in two directions. Firstly, intersections will be allowed to appear as types of fields, types of formal parameters and return values of methods, therefore they will be significantly used as target types for -expressions anywhere. Secondly, the notion of functional interface will be extended to any intersection of interfaces, including also several abstract methods with different signatures. We formalise our proposal through a minimal Java core extended with these novel features and we prove the type safety property.
2019
978-3-030-22347-2
978-3-030-22348-9
Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
68
86
Dezani-Ciancaglini M., Giannini P., Venneri B.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

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

Utilizza questo identificatore per citare o creare un link a questa risorsa: https://hdl.handle.net/2158/1161413
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 8
  • ???jsp.display-item.citation.isi??? ND
social impact