Skip to content

Assemble ability

一、关于ability,参见Programming-paradigm\Generic-programming\Implementation\Type-requirement章节

二、assemble ability的例子

1、C++ named type的实现

fluentcpp Variadic CRTP: An Opt-in for Class Features, at Compile Time

accu CURIOUSLY RECURSIVE TEMPLATE PROBLEMS WITH ASPECT ORIENTED PROGRAMMING

2、Strategy-pattern

3、Policy-based-design

4、wikipedia Composition over inheritance # Composition and interfaces

5、Decorator-pattern

最最典型的就是protocol interceptor拦截器,参见对应章节。

6、Protocol-parsing-library

Composition over inheritance

Assemble ability体现了Composition over inheritance。

Orthogonality、Separation of concern

Assemble ability和orthogonality有一定关联。