首页 > 解决方案 > 为什么是静态类

问题描述

为什么你只使用静态成员的类? https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/core/editOperation.ts#L11

它有什么好处?

为什么不使用扁平代码结构?像这样: https ://gist.github.com/DScheglov/f2a509498c035a1f0ec38fbcf895fd1e

标签: javascripttypescriptvisual-studio-code

解决方案


推荐阅读