Hard Soft
Hard 没有任何 方式得到
decorator?
- convention-based (
_foo
) - old closure private
- TypeScript
- symbol-based
- weakmap-based
其他语言?
Reflection
- 系统编程语言(性能)
- 应用编程语言
- Hack
- Whitebox Test
- Serialization
- Observation (Vue, Mobx, etc.)
- Other Enhanchment
Big frameworks
Don't touch my internal APIs
Fork
- cost
- no source code
- legal
Still hackable
- monkey patch
- runtime transform
本质上不是技术问题 而是开源生态治理问题
Balance of Author/User