pith. sign in

arxiv: 1706.00274 · v2 · pith:QTSLMDE3new · submitted 2017-06-01 · 💻 cs.PL

Towards a Java Subtyping Operad

classification 💻 cs.PL
keywords subtypingjavagenericlanguagesnominally-typedoperadrelationexistence
0
0 comments X
read the original abstract

The subtyping relation in Java exhibits self-similarity. The self-similarity in Java subtyping is interesting and intricate due to the existence of wildcard types and, accordingly, the existence of three subtyping rules for generic types: covariant subtyping, contravariant subtyping and invariant subtyping. Supporting bounded type variables also adds to the complexity of the subtyping relation in Java and in other generic nominally-typed OO languages such as C# and Scala. In this paper we explore defining an operad to model the construction of the subtyping relation in Java and in similar generic nominally-typed OO programming languages. Operads, from category theory, are frequently used to model self-similar phenomena. The Java subtyping operad, we hope, will shed more light on understanding the type systems of generic nominally-typed OO languages.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Java Generics: An Order-Theoretic Approach (Abridged Outline)

    cs.PL 2019-06 unverdicted novelty 5.0

    Outlines an order-theoretic and category-theoretic model for Java generics to address analysis challenges in generic OO type systems.