-
Notifications
You must be signed in to change notification settings - Fork 3
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
struct: method #117
Comments
When transpiled to JS, a struct is just an object of data. So it will have smaller memory footprint. |
I won't do that. I will do the same as for enums: static dispatch.
is transpiled as (I've removed the dispatch code when the types aren't know)
Kaoscript won't be limited to JS, it will be transpiled to other languages like Lua, Zig or Rust. |
I'm planning a rewrite the current transpiler since the semantic analysis is limited and the code generation isn't separated with the other steps. (I already have a prototype) |
The text was updated successfully, but these errors were encountered: