News for hackers. Stuff that matters.
Re:Toml: Tom's Obvious, Minimal Language by adrusi on Friday July 13, 2018 @06:50PM (#17527545)
It's kind of similar to the syntax of uri query strings and the php syntax for appending to arrays, in that an extra pair of square brackets indicates appending:

In php:

    $a[] = 1;
    $a[] = 2;
    # $a == array(1, 2)
In URIs:

    http://example.org/?a[]=1&b[]=2
Compare to TOML

    [[a]]
    item = 1

    [[a]]
    item = 2
Re:Toml: Tom's Obvious, Minimal Language by majewsky on Friday July 13, 2018 @06:59PM (#17527585)
That URI syntax is just a convention used by some web frameworks. You can just as well write

  https://example.org?foo=bar&foo=baz
Re:Toml: Tom's Obvious, Minimal Language by TimothyBJacobs on Friday July 13, 2018 @08:25PM (#17527965)
Not for PHP at least, maybe others, the last query arg will win.