-
Notifications
You must be signed in to change notification settings - Fork 65
feature-Request: hyphen-separated settings #7
Comments
You raise a good point, @shiphrah. In general, I am not a big fan of "magic". In fact, I somewhat regret some of the macro magic that Ficus already has. Having said that, the macro-derived readers are pretty convenient compared to generating readers manually. It probably makes sense to support something like this. I have a number of things on my backlog, so I probably won't be getting around to this very soon. In case someone else wants to take a stab at a pull request, here are my initial thoughts:
I've been sitting on some ideas for making it much easier to define readers so it's easier to not rely on macros and still not need to write lots of boilerplate. However, these ideas would probably be significant enough that they would be part of a Ficus 2.0, and I'm not sure if/when that would happen. |
Thanks for your comments, @ceedubs ! Actually I'm still quite biased about my feature request. The approach using The ability of Ficus to directly read case classes saves me from a lot of boilerplate. So I would not want to miss this feature. Having said all this, I still think it could be a nice feature being able to customize how Ficus translates from fields to settings, without having to generate readers manually. I'm wondering if would be possible to provide an (implicit) I can try to have a look at this, but will not manage before the 4th quarter of the year. Still I have no experience with macros, so I don't know how far I would get without support... Jürgen |
HOCON specification recommends
hyphen-separated
settings overcamelCase
Using case classes like the following works
but it is a bit clumsy in the source code.
Wouldn't it be nice to have an option to automagically convert
camelCase
intohyphen-separated
?The text was updated successfully, but these errors were encountered: