News for hackers. Stuff that matters.
Re:Cargo, Rust's Package Manager by pandatigox on Tuesday June 24, 2014 @04:14AM (#7936661)
I think that's a good point. Why use .toml when we have better alternatives already?

(I admit I have a bias against toml, but still...)

Re:Cargo, Rust's Package Manager by the_mitsuhiko on Tuesday June 24, 2014 @04:34AM (#7936706)
Which ones would that be?
Re:Cargo, Rust's Package Manager by phloxicon on Tuesday June 24, 2014 @08:52AM (#7937381)
YAML is quite mature, clean, is a superset of JSON so people could use JSON if they wanted, and it's used for config files for pub, Dart's package manager. TOML doesn't seem mature enough.
Re:Cargo, Rust's Package Manager by bjz_ on Tuesday June 24, 2014 @11:57AM (#7938446)
TOML is extremely simple. YAML on the other hand is incredibly hard to implement. JSON has no comments and is not really that nice for humans.
Re:Cargo, Rust's Package Manager by mateuszf on Tuesday June 24, 2014 @08:35AM (#7937312)
How about s-expressions :) ?
Re:Cargo, Rust's Package Manager by bokchoi on Tuesday June 24, 2014 @05:22PM (#7940752)
Re:Cargo, Rust's Package Manager by bjz_ on Tuesday June 24, 2014 @11:56AM (#7938438)
That would be my choice, but TOML is good enough for me :)
Re:Cargo, Rust's Package Manager by kodablah on Tuesday June 24, 2014 @12:39PM (#7938685)
Re:Cargo, Rust's Package Manager by nimish on Tuesday June 24, 2014 @10:08AM (#7937801)
toml is unstable and has no real spec + YAML has a well defined spec and is widely used?
Re:Cargo, Rust's Package Manager by Ygg2 on Tuesday June 24, 2014 @11:11AM (#7938180)
YAML spec is also super complicated and writing parser for it is non-trivial (for comparisson YAML has ~150 EBNF rules while XML with DTD has about ~80)! I'm not comparing validation rules but they are probably about the same.

This complexity means there is already a parser for TOML, and not one for YAML. That's IMO main reason they went with TOML.

Re:Cargo, Rust's Package Manager by steveklabnik on Tuesday June 24, 2014 @11:15AM (#7938203)
There are actually already MULTIPLE parsers for TOML in Rust, and Cargo switched between the two yesterday.

As you say, this is a testament to TOML's simplicity.

EDIT: Furthermore, TOML is going to have a 1.0 soon: https://github.com/rust-lang/cargo/issues/46