Skip to content
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 Inheritance #310

Open
jwhpryor opened this issue Jul 3, 2024 · 0 comments
Open

Support Inheritance #310

jwhpryor opened this issue Jul 3, 2024 · 0 comments
Assignees
Milestone

Comments

@jwhpryor
Copy link
Collaborator

jwhpryor commented Jul 3, 2024

Currently, class definitions must re-declare all of their parent classes interface if they want to be used, which is repetitive.

Also, subclasses must static_cast themselves to jobjects to be used in a context their subclass is required which loses type safety.

enum classes are basically syntactic sugar for a subclassing, so this likely needs to be implemented first.

It will be nice to unify the type system to enable interface of Object throughout Java. That said, Kotlin's Any is not Java's Object, so any solution should not presume this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant