felixge / felixge/node-style-guide
Object.freeze
未关闭
- 主要语言
- JavaScript
- 星标
- 5k
- 派生
- 893
- PR 合并指标
- 30 天内没有已合并 PR
描述
Great guide, thank you!
I was sad to see Object.freeze at the bottom, included in the 'Crazy shit' group. I've been using it in some of my projects lately, but only by using the constant naming convention, like enums. There are also some speed optimizations appearing when using Object.freeze. Any further thoughts on this? Would it make sense to take it out of the 'Crazy shit' group, when used with a naming convention?
A little more info with a small example:
http://stackoverflow.com/a/31906266/2280394
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。