Salta alla navigazione principale Salta alla ricerca Salta al contenuto principale

Intersection Types in Java: Back to the Future

Risultato della ricerca: Capitolo in libro/report/atti di convegnoContributo in volume (Capitolo o Saggio)peer review

Abstract

In this paper we figure out the future of intersection types in Java developments, based both on the primary meaning of the intersection type constructor and on the present approach in Java. 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. Thus a single target type will be able to express multiple, possibly unrelated, properties of one expression. We formalise our proposal through a minimal Java core extended with these novel features and we prove the type safety property.

Lingua originaleInglese
Titolo della pubblicazione ospiteLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
EditoreSpringer Verlag
Pagine68-86
Numero di pagine19
DOI
Stato di pubblicazionePubblicato - 2019

Serie di pubblicazioni

NomeLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume11200 LNCS
ISSN (stampa)0302-9743
ISSN (elettronico)1611-3349

Fingerprint

Entra nei temi di ricerca di 'Intersection Types in Java: Back to the Future'. Insieme formano una fingerprint unica.

Cita questo