Skip to content

Structs #4

@natario1

Description

@natario1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions