Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100358 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78483 invoked from network); 3 Sep 2017 22:27:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2017 22:27:13 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.15 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.15 mout.gmx.net Received: from [212.227.15.15] ([212.227.15.15:51596] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/F6-04538-FB18CA95 for ; Sun, 03 Sep 2017 18:27:12 -0400 Received: from [192.168.2.123] ([79.243.120.97]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MXq3L-1e1gS324xj-00Wq18 for ; Mon, 04 Sep 2017 00:27:08 +0200 To: internals@lists.php.net References: Message-ID: <4d88678e-47e0-0f83-813c-c76daa8df003@gmx.de> Date: Mon, 4 Sep 2017 00:27:15 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:eLqvhFxJJA7PRKv4eoEJreye9q5RjHmpY9fVJWyuBtZAAHTWD5e qoE3ngbs2O9xgW0agOqg7cEZu+BmCAf6IKUrm3S5O/1Ger8eDKitL+srTPDOGT7U5I+rcFN BlbdOGk5PjmVnF7hy7x96KqXCEUi9uZWiG6tErOuDnmafdmGIT2u9AyDtVWoAu62xFfj8Ik 2awcwROOSc118GTPZFQlA== X-UI-Out-Filterresults: notjunk:1;V01:K0:rQSmfV92faQ=:V2m1GVR1YO58gdhtGmbfr4 Us+hGhQXojI1UHoP8H74VYs6yud9cZKvU6+JBrNUB6osDB2jHbowMi8n4tzk87aWAq3yduO8M V6ncscsCNu8nnZD8WeDMYRlYO0laJxor0nnsByGjoOQzQ74AgQxlqy5iLU4PYj78cl1vQlk6C 5EWdNuwCbDJfsf0P8QylaOSpDzXOZCb0mEObgZ4ZHS9uZ3DoY7ODnlKbpkCDL6dlDDspC/8pd wN/fvqCAoPMZeWAyfvIvxabN/dpMsd4jnd3JG9rjIS4UkYjmj+rMgMw6zrQ55p4KcP5zOcZrF fs0zJvGlZNXUfctdgPxjwPWvwPeQVeHtugtcGYubYoMrd7GNMjWV7Ao5dfzOXRMndbdVVjJrM yrR40VkUxQKECua6BU677oup7R7FRsXH7Lpb0R1YDmkhyh4moAWYp5PCJxuhCpVU5TxBAzFFt K8U3hOdRbvKB+QOqnlbe5VrAdg4L+YBhIzIX6zHZHJ9IFoE2OjDj+uucYiaXdmOaYrE/D/MI2 upzDDc7favsXJI0lts1H9ibSQCTEOGjyvInoQeLgwyBn7q0Rwj+uRaJqIXkhCDL6jPotsRH8J fseOlKWW8UQFa73G7lodtpGGgOf8z5vlWnKMJLH4NDTEUAhLwk0CSm0YC4TECTQ5gLIf1LGgp OJmd11AkiSDpEZ9EYUaBC32Jg6+LGxZT6yi6KFHEbVEpBSpgt94oTBEqGU8GACcgb7zUNyq3u DlNVtSoeCfl9YB7za24iXMISuyMneJPyxlVno40Cr2NuZHjeDKB5p6WQ5N6EW/ygO6gFv3+kr yUjH2Ok12bmvrM2/x9uMMDJj5AVtDyksXkZnmXmx+Lq9KTYRV8= Subject: Re: [VOTE] UUID From: cmbecker69@gmx.de ("Christoph M. Becker") On 02.09.2017 at 09:01, Fleshgrinder wrote: > I just started the voting for the inclusion of a UUID value object in > PHP's core, targeting PHP 7.3. I wanted to start earlier, but was sick > the whole week. > > The voting is open starting now and until September 16. (2 weeks). IMHO, the RFC misses its own point. The introduction claims that uniqid() is insufficient, and that UUIDs are much more appropriate. I fully agree. However, instead of providing a single function to replace uniqid() it offers a full blown class which even includes *parsing* of UUIDs. The RFC furthermore claims: | A programming language’s standard module should provide the most basic | and repeating building blocks, to ensure that developers can achieve | things fast without much hassle. I fully agree, but I don't see that *parsing* of UUIDs is such a most basic building block, and even most of the rest of the proposed UUID class doesn't appear to fit that category. With regard to type-safety (which is probably the point of parse()): having type-safe UUIDs is only a fraction of one percent of what is occasionally needed in applications – do we really want to add thousands of classes to ext/standard? -- Christoph M. Becker