Closure Design Goals and Principles
Haven't in blog for a long time, in this days, I was in love with Closure, A javascript Library presented by GOOGLE.
Closure is a collection of tools for building rich web applications in JavaScript. It is important to understand the design goals and principles that motivate the implementation of the Closure Tools.
1、Reducing Compiled Code Size Is paramount
2、All Source Code Is Compiled Together
3、Managing Memory Matters
4、Make It Possible to Catch Errors at Compile Time
5、Code Must Work Without Compilation
6、Code Must Be Browser-Agnostic
7、Built-in Types Should Not Be Modified
8、Code Must Work Across Frames
9、Tools Should Be Independent