Re:CoreOS is building a container runtime, Rocket
by ecnahc515 on Monday December 01, 2014 @07:00PM
(#8684918)
I think using JSON is a solid choice. You can easily make yaml to JSON translators for this purpose.
Re:CoreOS is building a container runtime, Rocket
by ash on Monday December 01, 2014 @08:24PM
(#8685182)
JSON is okay, but I hope TOML will gain traction soon. Because comments. And trailing commas. Rust Crate is already using TOML for package metadata.
Re:CoreOS is building a container runtime, Rocket
by catwell on Tuesday December 02, 2014 @06:06AM
(#8686558)
+1 for TOML. If you think simplicity matters, look at the YAML spec [1], vomit and never use it again.
If you still don't believe me, try implementing a conforming YAML 1.2 parser (oh, and try not to make it a source of RCE [2]...).
[1] http://yaml.org/spec/1.2/spec.html
[2] http://blog.codeclimate.com/blog/2013/01/10/rails-remote-cod...
Re:CoreOS is building a container runtime, Rocket
by nor0101 on Tuesday December 02, 2014 @02:54AM
(#8686151)
+1 for TOML, started playing with Rust a couple of weeks ago.
The curly braces and brackets can get ugly when nested.
edit:
It may seems stupid but when you're on the terminal with vim and the directory path is long in some nested object/array. Things is really hard to parse out with your eyes.