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

Structs #4

Open
natario1 opened this issue Jun 8, 2024 · 0 comments
Open

Structs #4

natario1 opened this issue Jun 8, 2024 · 0 comments

Comments

@natario1
Copy link
Member

natario1 commented Jun 8, 2024

It'd be useful to support some kind of @KneeStruct annotation to mark classes that we want to pass-by-value.

  • Could replace @KneeEnum and @KneeObject, which follow the same semantics (e.g. a JVM enum doesn't hold a reference to the native enum)
  • Could apply to value class, something you can't currently send
  • Could apply to data class and, if they ever show up in the language, multiple-values value classes

The codec implementation for structs could use a jobjectArray under the hood.

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