-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ES6-style Classes #33
Comments
We have support for structs with member functions, but I agree, we could do a lot better here. One path to consider here is building LLJS on top of Typescript. |
Indeed, but what about the other way round - convert TypeScript to LLJS? And then LLJS -> C means you get TypeScript -> LLJS -> C -> native in theory :) |
LLJS is not that sophisticated. It can't automatically lower JavaScript semantics into C, it just adds some C like features to JavaScript. |
I'm really talking about the LLJS that compiles to asm.js - not the "superset of JS". If you only allow typed JS, then why not just remove "let" and translate "new" to malloc … and get C? what am I missing?) |
Would be nice to go beyond plain C idioms and add support for classes (ES6 style). These can be easily represented as structs under the hood.
A real class system with inheritance and mixins would go a long way to making this far better alternative to C + emscripten. I'd have no issue with writing large web apps in LLJS that way.
The text was updated successfully, but these errors were encountered: