2 ms·
> You're talking about translating from one high-level language to another, and expecting the interpreter for the latter to care anything about the rules of the
by _pmf_ 12y ago
> You're talking about translating from one high-level language to another, and expecting the interpreter for the latter to care anything about the rules of the former.
Yes; but the Closure compiler knows about the semantics of JS and generates a shitload of disgusting low-level wrappers and checks that implement the retarded JS semantics. You're right in that there are cases where this breaks down, but Closure is not really a high-level-language to high-level-language compiler. The JS output is not in any way human readable (look, for example, at http://de.indeed.com/s/8a9f5dc/jobsearch-all-compiled_de.js http://de.indeed.com/s/8a9f5dc/jobsearch-all-compiled_de.js).