Jermolene/cook.js — comment on commit f1120486822cfe827b3f9b5d69127c8307f5d583
File:  line 0
By Jermolene:

The original reason is because I am using "option strict". If I use it at global scope, JSHint complains on the basis that the results will be unexpected if the JS files are concatenated in a later build process.

cook.js of course concatenates modules when it cooks node.js modules for client side use, but in fact it wraps a function around the modules itself. I still think it's worth doing in the raw modules as it does improve encapsulation, specifically of the "option strict" setting.