Back to articles
Rethinking OOP Through Dependent Types and Codata

Rethinking OOP Through Dependent Types and Codata

via HackernoonConcatenation: The Interconnected CS Series

This article explores how object-oriented programming evolves in a dependently typed setting by reinterpreting methods as codata observations with self-parameters. It shows how this approach enables verified interfaces, separates intrinsic and extrinsic verification styles, and redefines function and pair types as user-defined codata. By examining Π- and Σ-types, existential encodings, and codata representations of natural numbers, the work argues for a simplified core language where dependent expressiveness emerges from structured codata design.

Continue reading on Hackernoon

Opens in a new tab

Read Full Article
0 views

Related Articles