Show simple item record

dc.contributor.authorZhang, Yizhou
dc.contributor.authorLoring, Matthew C.
dc.contributor.authorSalvaneschi, Guido
dc.contributor.authorLiskov, Barbara
dc.contributor.authorMyers, Andrew C.
dc.date.accessioned2016-04-18T20:30:51Z
dc.date.available2015-04-15T21:57:04Z
dc.date.available2016-04-18T20:30:51Z
dc.date.issued2015-06
dc.identifier.urihttps://hdl.handle.net/1813/39910
dc.descriptionContent file updated at author's request on 2015-04-30.en_US
dc.description.abstractThe support for generic programming in modern object-oriented programming languages is awkward and lacks desirable expressive power. We introduce an expressive genericity mechanism that adds expressive power and strengthens static checking, while remaining lightweight and simple in common use cases. Like type classes and concepts, the mechanism allows existing types to model type constraints retroactively. For expressive power, we expose models as named constructs that can be defined and selected explicitly to witness constraints; in common uses of genericity, however, types implicitly witness constraints without additional programmer effort. Models are integrated into the object-oriented style, with features like model generics, model-dependent types, model enrichment, model multimethods, constraint entailment, model inheritance, and existential quantification further extending expressive power in an object-oriented setting. We introduce the new genericity features and show that common generic programming idioms, including current generic libraries, can be expressed more precisely and concisely. The static semantics of the mechanism and a proof of a key decidability property are provided.en_US
dc.language.isoen_USen_US
dc.subjectProgramming language design and implementationen_US
dc.subjectGeneric programmingen_US
dc.subjectObject-oriented programming languagesen_US
dc.subjectTypes and semanticsen_US
dc.titleGenus: Making Generics Object-Oriented, Expressive, and Lightweighten_US
dc.typereporten_US


Files in this item

Thumbnail

This item appears in the following Collection(s)

Show simple item record

VersionItemDateSummary

*Selected version

Statistics