按年被提到
20052017 · 1 次2026
编程语言与编译器›类型系统与函数式语言·arXiv:cs/0509027 · cs.PL

Haskell's overlooked object system

Oleg Kiselyov, Ralf Laemmel · 2005
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 2 人首次 2017-05-01 · 最近 2020-11-27
2不同的人
2活跃月份
2讨论串
33被引(OpenAlex)
arXiv 摘要(候选层不写导读)

Haskell provides type-class-bounded and parametric polymorphism as opposed to subtype polymorphism of object-oriented languages such as Java and OCaml. It is a contentious question whether Haskell 98 without extensions, or with common extensions, or with new extensions can fully support conventional object-oriented programming with encapsulation, mutable state, inheritance, overriding, statically checked implicit and explicit subtyping, and so on. We systematically substantiate that Haskell 98, with some common extensions, supports all the conventional OO features plus more advanced ones, including first-class lexically scoped classes, implicitly polymorphic classes, flexible multiple inheritance, safe downcasts and safe co-variant arguments. Haskell indeed can support width and depth, structural and nominal subtyping. We address the particular challenge to preserve Haskell's type inference even for objects and object-operating functions. The OO features are introduced in Haskell as the OOHaskell library. OOHaskell lends itself as a sandbox for typed OO language design.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
评论kaosjester · 2017-05

“Perhaps unsurprisingly, Oleg rebuilt the linked implementation in Haskell [0]. It works exactly as you'd expect, right out of the box. 0. https://arxiv.org/abs/cs/0509027”

“A closure is a poor man’s object; an object is a poor man’s closure” (2003)原评论 ↗
评论philzook · 2020-11

“A fun post. I liked seeing some things I knew summarized and some things I didn't know. It is fascinating to me that functional programming techniques and object oriented techniques become intersecting once you know enough about the two. The aversion some parts of the functional programming community have to object oriented is more about how it manifests …”

Existential Haskell原评论 ↗