23 ms·
> I found the double square bracket syntax useful and understandable Really? I had kind of the inverse reaction to it. Indeed useful, but definitely not unders
by alokitr 8y ago
> I found the double square bracket syntax useful and understandable
Really? I had kind of the inverse reaction to it. Indeed useful, but definitely not understandable
- adrusi 8y agoIt'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
- majewsky 8y agoThat URI syntax is just a convention used by some web frameworks. You can just as well write https://example.org?foo=bar&foo=baz
- TimothyBJacobs 8y agoNot for PHP at least, maybe others, the last query arg will win.