News for hackers. Stuff that matters.
Re:Toml: Tom's Obvious, Minimal Language by cies on Friday July 13, 2018 @10:32AM (#17523248)
Yups. And making a whole datetime RFC part of the spec kind of broke with the "minimal" thing. But apart from that I totally prefer it over INF/YML/JSON/XML for many purposes.
Re:Toml: Tom's Obvious, Minimal Language by laumars on Friday July 13, 2018 @11:43AM (#17523891)
Datetime does need to be part of the spec if you want your markup files portable otherwise every TOML parser might decode a date slightly differently. In that regard it is really no different to saying "01" (string) is different to 1 (integer) in terms of preserving your data's integrity.
Re:Toml: Tom's Obvious, Minimal Language by wvh on Friday July 13, 2018 @10:38AM (#17523287)
I guess there's no way around that though, if you want dates to be first class members. Can't do "a bit of date".
Re:Toml: Tom's Obvious, Minimal Language by mojombo on Friday July 13, 2018 @10:42AM (#17523316)
We added a proper datetime type because the only thing worse than having one is not having one. If you had to supply a datetime as a string, every TOML file would have a different way of doing it, which is...not so obvious.
Re:Toml: Tom's Obvious, Minimal Language by adamch on Friday July 13, 2018 @10:41AM (#17523311)
Excluding the datetime RFC in the name of minimalism would make the language much worse (coughjson). I feel like this is as simple as it could be, but no more.