Ah, ok. So I guess Rack's modeling it after PHP. :\ On Mon, Jan 18, 2010 at 10:25 PM, Brett Slatkin <[email protected]> wrote:
> On Mon, Jan 18, 2010 at 3:59 PM, Jeff Lindsay <[email protected]> wrote: > > It's annoying because I don't think "arrays" are standardized very well > in > > HTTP. I know PHP also uses the [] convention, and apparently so does > Rack... > > which is surprising. Almost every other environment I know (pretty much > all > > python) don't need [] to parse into an array (at the expense usually of > not > > knowing if it's single value or multi value). > > They're standardized in the sense that the HTML spec and > 'application/x-www-form-urlencoded' allows for repeated parameter > names. PHP's foo[] is a hack. > -- Jeff Lindsay http://webhooks.org -- Make the web more programmable http://shdh.org -- A party for hackers and thinkers http://tigdb.com -- Discover indie games http://progrium.com -- More interesting things
