TOML, Tom's Own Markup Language
91–100 of 173 posts
Re: TOML, Tom's Own Markup Language
#92Earlier quoted context omitted.
Go "back"?! There are lots of places where xml is alive and well and config files is one of them. And you can see why - empty elements with attributes look rather concise, and without all that punctuation noise JSON has.
cough every java project ever cough
Re: TOML, Tom's Own Markup Language
#93Urg. Off topic, but I dislike this perl/ruby tendency of calling hash tables hashes . When I see the word hash , I always think of a value (ie a hash code) and not a data structure. Why couldn't they call it a hash map, hash table, map, table, dictionary etc like all the other languages...?
This bit of ruby should take care of it HashMap = HashTable = Map = Table = Dictionary = Hash And if you're feeling adventurous, Object.send :remove_const, :Hash
One addition though:
Cocktionary = HashMap
"Dictionary" never really made sense.Re: TOML, Tom's Own Markup Language
#94Because we need a decent human readable format that maps to a hash and the YAML spec is like 600 pages long and gives me rage. No, JSON doesn't count. You know why. I do not know why, And would love if one can explain me? Other than comments, I see not difference between both. Also, that human readable is not an accurate, as it should be hacker readable, you know, IT folks are the only target audience of those files.…
In JSON that datetime won't deserialize to a datetime instance in your language in a conforming parser. Further JSON has no comments (this is a killer for a configuration format).
Re: TOML, Tom's Own Markup Language
#95Would this be considered legal? [ [1,2], ["a", "b"] ]
It's unspecified, I guess, but if you want to read into the spirit of it, which is to make it trivially-supportable by type-nazi languages such as haskell, you either get a [[Int]] or a [[String]].
Re: TOML, Tom's Own Markup Language
#96Earlier quoted context omitted.
And this is only 10% curly braces, not counting spaces.
Despite that, the thread easily illustrates the difficulty of writing valid JSON by hand.
Re: TOML, Tom's Own Markup Language
#97Earlier quoted context omitted.
As proper nouns become more common, they first lose any capitalization in the middle of the word, and then finally capitalization of the initial letter. It's human language. It happens.
Especially when their own logotype has it in all lowercase.
Re: TOML, Tom's Own Markup Language
#98Urg. Off topic, but I dislike this perl/ruby tendency of calling hash tables hashes . When I see the word hash , I always think of a value (ie a hash code) and not a data structure. Why couldn't they call it a hash map, hash table, map, table, dictionary etc like all the other languages...?
my %hash = ();
Hash.new
So naturally people talk of Hashes etc. I understand where you're coming from, but it's really not very important, and it would be more confusing to talk of Hash Tables as learners would naturally look for HashTable in the stdlib.Re: TOML, Tom's Own Markup Language
#99Earlier quoted context omitted.
I agree with that. 'map' or 'dictionary' are the best choices I think (or 'associative array', but why bring arrays into it). That's the interface, of which a hash table is just one possible implementation.
I've never liked 'dictionary'. The analogy isn't at all apparent to me. A dictionary explains what words means. The thing we're talking about doesn't explain what keys mean. (Someone who spends most of his time writing python here.) 'map' or 'mapping'.
Re: TOML, Tom's Own Markup Language
#100It seems to me that YAML does this better already (with parsers which are already high-quality). If we want simplicity, then why not make sure it is a subset of YAML?