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 HOCON configuration support #568

Open
dakotahNorth opened this issue Apr 10, 2024 · 2 comments
Open

Add HOCON configuration support #568

dakotahNorth opened this issue Apr 10, 2024 · 2 comments

Comments

@dakotahNorth
Copy link

dakotahNorth commented Apr 10, 2024

Suggest to add HOCON (Human-Optimized Config Object Notation) support.

https://github.com/lightbend/config/blob/main/HOCON.md

Given the project's current support for JSON, incorporating HOCON could provide enhanced flexibility and usability for configuration files.

Why HOCON?

HOCON is a superset of JSON designed for human-readable files. It includes several features that make it more convenient for configuration purposes, such as:

  • Comments: Allows users to document their configuration, making it easier to understand and maintain.
  • Optional commas: Reduces the likelihood of errors when adding or removing elements.
  • Includes: Enables sharing and reusing configurations across files.
  • Property merging: Simplifies the expression of complex configurations.

These features, among others, make HOCON an attractive option for configuration files, especially in complex applications and recommend for manifold-systems to consider adding HOCON along side of JSON, YAML, etc.

@dakotahNorth dakotahNorth changed the title Add HOCON as configuration format Add HOCON as configuration support Apr 10, 2024
@dakotahNorth dakotahNorth changed the title Add HOCON as configuration support Add HOCON configuration support Apr 10, 2024
@rsmckinney
Copy link
Member

You had me at Comments ;)

It looks like HOCON is mostly used for Minecraft mods via Sponge? Don't know much about minecraft, but a decent amount of useful feedback for manifold comes from that crowd. I'd be happy to implement HOCON support if you think it would be useful enough to be used in that context, just a matter of scheduling time for it, not much of that these days. Should work out though, if I can extend manifold-json according to my limited mental model of HOCON.

@dakotahNorth
Copy link
Author

They are certainly the ones who popularize it ... and I have used Hocon on several projects outside of Mineraft mods, so it is used more broadly outside of Sponge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants