Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
use full ClassName.prototype.memberName #853
... when assigning members to prototypes. As of this writing, Google's
The LS compiler's bytesize increases by 0.6%, from 224612 to 226009 (this is with regenerating
Here is a quick survey of what some other class-supporting transpiled languages do:
If there were more code generators using the prototype var pattern, I'd say this is on Closure to become smarter. But given that the two giants in the room, CoffeeScript and TypeScript, do it the long but easily-optimized way, I think it makes sense for LiveScript to follow suit and enjoy the same optimizations that they do.