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

Provide better integration with Scala #76

Closed
lilyevsky opened this issue May 21, 2020 · 3 comments
Closed

Provide better integration with Scala #76

lilyevsky opened this issue May 21, 2020 · 3 comments

Comments

@lilyevsky
Copy link

lilyevsky commented May 21, 2020

This is just a suggestion for possible improvement that would encourage more developers to use this library.
I am using Hocon with Scala for a few years, and one annoying aspect is that I have to convert Java objects (especially lists and maps) to Scala explicitly. Also checking whether the element exists before retrieving it - could enjoy using scala Option, or method with default.
I found this Sconfig project while looking for Scala Hocon support. Unfortunately, it looks like it does not give me any advantage compare to the original Lightbend Java library.
I also saw some other projects providing Scala wrappers, but their problem was, they are not actively maintained.
So maybe I will just write my own small wrapper, this should not be hard.
Unless you can create one.

@ekrich
Copy link
Owner

ekrich commented May 21, 2020

@lilyevsky Thanks for your request. If you have any wrappers that you like or think are good I would definitely look at them. We could also possibly integrate at a lower level as well to avoid a wrapped approach.

I am not a frequent user of this library so I don't have the day to day experience that you have so perhaps you could point to the frequent pain points and even sketch out a API that would be great. We could probably do just about anything if we leave the current API so people can transition.

I know the FP users would probably want some thing more sophisticated. There is PureConfig - https://pureconfig.github.io/

@lilyevsky
Copy link
Author

Thanks, I am now using pureconfig.

@ekrich
Copy link
Owner

ekrich commented Sep 4, 2020

@lilyevsky Thanks for your interest. It would be nice if pureconfig could have an integration for sconfig. Then it could maybe support Scala Native.

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

2 participants