Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98376 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61740 invoked from network); 2 Mar 2017 14:34:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2017 14:34:15 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.193 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.193 mail-wr0-f193.google.com Received: from [209.85.128.193] ([209.85.128.193:33644] helo=mail-wr0-f193.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/F3-20342-76D28B85 for ; Thu, 02 Mar 2017 09:34:15 -0500 Received: by mail-wr0-f193.google.com with SMTP id g10so9725549wrg.0 for ; Thu, 02 Mar 2017 06:34:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=7fT0GXFu7sRYyJq/yPfqtfpc/JPW/ekWuaE1RtlKNJI=; b=mAiacsCZrU8ZYdTfKN0Zi3dSXapLp1rEN4RMCpIPL9UJ+vX3eBSdPs0sJhsYRTzfCa Xw84Hlgbt19qWsijEpIfLIxE9sqiYs1vA0dKCHIAYgqPzfuDWEYM76RTaqjv4UBPTUzN GZ1f4AgLyaKXh5FiysmonAWAJJpjyU+nwkd1CB70I4DhkPtVPdQvuYYCfSTR7rpYL+kk jwFf8ZlyD1VUaow04hAGsBneksLplnqTNSeCirhtoaexahEFgg+likL0inoYMZx4CR// oVWoxs8OOsx+EyVKjqImafSuUzTy1cm7K2OtTDcTOvcro4Akyvtg6173cs/EaqIQbf8U YpiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=7fT0GXFu7sRYyJq/yPfqtfpc/JPW/ekWuaE1RtlKNJI=; b=HH+hEGPAaQw1iS6vbF++FqmJ7f4PXDJrgY8Iixp4v2vmbAkrrSyXQw367SNZRZVf0h W5Gn7qQKjDrkmnWzsmtjBrWE/K8UQC+VHYRciYNOATGqwP8ETQC0h/TnFOAWCrTCSu9D Fje1TAyF81iQL2IS1xuHXv0AYV0E9de4LzT98LYykaNyBF8Rkk0FJbdZ69/WaSaylqre VRvS5Rhu77ZsShqkcU5/86s17NyeJlT8h9Y4zYh6ZmrhwHlt+hEL7D59JxQuCfJBkuEh XiyOVmfUpl2zp1Ep+Ya/YCBhptQpnUW+d4LRYv0PK4Afy82PwMPIzeyX5xx419MShDHI yg9A== X-Gm-Message-State: AMke39kPEZjfgP5JWBfPBlxaD/69C5K8LP/05rgnc5s2jcS7IPEDdiYrcM7llDaLsBihww== X-Received: by 10.223.136.82 with SMTP id e18mr12653161wre.28.1488465252108; Thu, 02 Mar 2017 06:34:12 -0800 (PST) Received: from [10.61.76.47] (188.29.165.109.threembb.co.uk. [188.29.165.109]) by smtp.gmail.com with ESMTPSA id z70sm11125085wrc.2.2017.03.02.06.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 06:34:11 -0800 (PST) Date: Thu, 02 Mar 2017 14:34:07 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net,Rene Veerman Message-ID: Subject: Re: [PHP-DEV] please excuse my forum crosspost, please do read this when you have some time. From: rowan.collins@gmail.com (Rowan Collins) On 1 March 2017 20:30:42 GMT+00:00, Rene Veerman wrote: >exec-sum : introducing a new URL notation scheme I'm not at all sure what you're trying to achieve here, and if you wanted = this to be widely adopted, I think you're about 30 years too late=2E What is the "elevator pitch" for this syntax? Why would I choose your synt= ax over the long-established "?foo=3Dbar&baz=3Dquux" syntax? >example 1 : > >http://localhost/tarot(deck'Original-Rider-Waite >',reading'3-Cards')/music(youtubePlaylist'ABCDEFG') In PHP, you will get your desired result using http://localhost/?tarot [de= ck]=3DOriginal-Rider-Waite&tarot[reading]=3D3-Cards&music[youtubePlaylist]= =3DABCDEFG It's slightly more verbose if you have lots of items in one array, but has= the crucial advantage that you can use standard HTML forms to generate it= =2E >http://localhost/jsonViewer(url'base64aHR0cDovL3NlZHVjdGl2ZWFwcHMuY29tL2p= zb24ucGhwP2ZpbGU9L2hvbWUvcmVuZS9kYXRhLmpzb24mdmVyc2lvbj1jb25kZW5zZWQ=3D Using base64 in URLs is already quite common; there's no standard way of a= nnotating it to be automatically decoded, but creating a convention in your= own application is not difficult - normally as simple as "this field is al= ways base64, everything else never is"=2E Maybe I'm missing something, but your linked post doesn't seem to give any= thing more than these same examples=2E And since this is the mailing list f= or developing the internals of the PHP language, what is it you think shoul= d be added to the language for this? Regards, --=20 Rowan Collins [IMSoP]