no guice for kotlin/native? :confused:
# kotlin-native
e
no guice for kotlin/native? 😕
g
Guice is based on reflections, no reflections yet on K/N
I think it would be possible to write DI when compiler plugins will be available for K/N and use code generation for this, probably would be a better approach than reflections
For now you can easily write service locator on Kotlin, you can take a look on existing ones like Kodein or Koin for inspiration (maybe some of them already available as multiplatform, not sure)
👍 1