-
Notifications
You must be signed in to change notification settings - Fork 61
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
use a human config format #2
Comments
I'm not a huge fan of YAML, and definitely not TOML. Everyone knows how to write JSON, and I don't think it's too cumbersome to write. I also don't see a huge need for comments, Cranefiles should be fairly simple and self-explanatory. I might add support for YAML as an alternative though. Not a priority for me, but I'd include it if there's a pull request :) |
Right, this is why I advocate converting from a human format YAML into a computer format JSON as soon as possible and retaining the ability to send and receive JSON. Rather than patch this program I am using a converter program yaml2json executable. There are probably lots of them out there for different languages, and if not they are probably fairly easy to write. |
I definitely want to have JSON as the main format, also because I'm experimenting with this:
That just cannot be done with YAML. I'm open to allow a |
I think it could be done in either of these ways:
|
Right now, it doesn't make much sense to use |
sure, that makes sense. reading in a configuration can be from a multi-line YAML or JSON file, some settings could be validated, and then the data would be sent as a JSON string. |
awesome, thanks! |
JSON is for data interchange. It doesn't support simple necessities such as comments, it was not designed to be a user configuration format.
Possible options are YAML or TOML.
I haven't used TOML, but with YAML I immediately convert it to JSON in my programs.
The text was updated successfully, but these errors were encountered: