flâneur — a map of the web's best reading

TOML: Tom's Obvious Minimal Language

toml.io · 658 words · saved by 1 readers

TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics. TOML is designed to map unambiguously to a hash table. TOML should be easy to parse into data structures in a wide variety of languages. TOML aims to be a minimal configuration file format that: TOML already has implementations in most of the most popular programming languages in use today: C, C#, C++, Clojure, Dart, Elixir, Erlang, Go, Haskell, Java, JavaScript, Lua, Objective-C, Perl, PHP, Python, Ruby, Rust, Scala, Swift, … and plenty more. TOML thinks all config files should support comments. There are four ways to express strings: basic, multi-line basic, literal, and multi-line literal. Basic strings are surrounded by quotation marks: Multi-line basic strings are surrounded by three quotation marks on each side and allow newlines. Include a line ending backslash to automatically trim whitespace preceding any non-whitespace characters: str2 becomes "The quick brown fox jumps over the

Explore this link on the map →

saved by