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

Add formal support for idiomatic Kotlin #935

Open
matthewadams opened this issue Jun 28, 2023 · 1 comment
Open

Add formal support for idiomatic Kotlin #935

matthewadams opened this issue Jun 28, 2023 · 1 comment
Labels
proposal Enhancement idea or proposal

Comments

@matthewadams
Copy link

Feature Request

Add support for idiomatic Kotlin use of NATS. This might entail creating a new repo nats.kotlin.

Use Case:

The primary use case is to leverage suspending functions wherever possible. Another nice use case is a more native feel when writing a NATS project in Kotlin, especially with respect to null safety.

Proposed Change:

Either a new repository nats.kotlin, or an addition to this repo for the artifact.

Who Benefits From The Change(s)?

All Kotlin developers using NATS.

Alternative Approaches

Continue using the Java API implemented in this repository.

@scottf
Copy link
Contributor

scottf commented Jun 28, 2023

Writing a client from scratch is a pretty large undertaking. I think a compromise would be to write a thin Kotlin wrapper. We've had a similar idea for Scala. The difficulty would then only be keeping it up to date.

@bruth bruth added proposal Enhancement idea or proposal and removed 🎉 enhancement labels Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

3 participants