felixge / felixge/node-style-guide

Object.freeze

オープン
#67 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。