Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
Language support: no leading 1 space in syntaxhighlight
WikiNovum (talk | contribs)
added a section about toml
Line 2,087:
"J. Random Hacker": "555-1337"
}
</syntaxhighlight>
 
=== TOML ===
[[TOML]] is designed to map directly to a hash map. TOML refers to associative arrays as tables. Tables within TOML can be expressed in either an "unfolded" or an inline approach. Keys can only be strings.<syntaxhighlight lang="toml">[phonebook]
"Sally Smart" = "555-9999"
"John Doe" = "555-1212"
"J. Random Hacker" = "555-1337"</syntaxhighlight><syntaxhighlight lang="toml">
phonebook = { "Sally Smart" = "555-9999", "John Doe" = "555-1212", "J. Random Hacker" = "555-1337" }
 
</syntaxhighlight>