deepmedia / deepmedia/Knee

Structs

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
137
Forks
4
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.