Design patterns for functional-OO hybrid languages?

前端 未结 5 720
逝去的感伤
逝去的感伤 2021-01-29 19:33

Is there already any collection of best practices for languages like Scala?

I\'ve found a work on design patterns for functional languages, Design patterns for funct

5条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 19:50

    While not directly a design pattern catalog itself, the paper "Scalable Component Abstractions" (Martin Odersky; Matthias Zenger) examines three building blocks for reusable components:

    • abstract type members,
    • explicit selftypes, and
    • modular mixin composition.

    And it revisits several design pattern (publish/subscribe, subject/observer, Context/Component) to illustrate and understand what language constructs are essential to achieve systems of scalable and dynamic components.

提交回复
热议问题