Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100378 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3360 invoked from network); 5 Sep 2017 09:54:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2017 09:54:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.173 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.216.173 mail-qt0-f173.google.com Received: from [209.85.216.173] ([209.85.216.173:32929] helo=mail-qt0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/25-04538-2647EA95 for ; Tue, 05 Sep 2017 05:54:42 -0400 Received: by mail-qt0-f173.google.com with SMTP id i50so10208484qtf.0 for ; Tue, 05 Sep 2017 02:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=skQDAIkDHskr63alVmHwpBT3SyDROdsahbybz9zjmc0=; b=VAwKDGdChRtiNEoIE5mabYGwUdbsbTj0mfDOu/O6Dcf7chWdBH7VQ8NIHzNuR28yr4 IK7+s9qpsY8uFOVTIvgp4Vx+NO93yrIfCdtpvUfbyaLCzoQOCxuue1vwK8aJH2FQsvOZ nQAm2UqxmcwqpJ3EaB20WVPYXklg8mXCG9kxoDPUtMSPM5+JDPa7fjsf6M7ocLMaz+kf dyDdfv1dsz6f2J3FRLiZ3N1qhJ3E3ebvVOYwg+bfqQUC0rkzhgiAnRMvlv24SXDHhj/f kjDSx0P6Kog/1pmVIWGH8rpdkeIAdUbY79esHeI/5WmbcTtR3IAgMpfKNd33ZZQkEdm2 Uzng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=skQDAIkDHskr63alVmHwpBT3SyDROdsahbybz9zjmc0=; b=NujXZKHQIdRRswJ8WTzsBmQt+gBu7M9RuJ1XgcZhCTLL2epamfnyszS+ZnhvrfkG6q fAGIxpjPAON9PhkYeJC78/FIF+9McX+/j9bj/5IG5sXOHka6SUfuL7Or5ZvEJTJrfXmA sbsnAopkyjh2+Hqqz0ZaNO+n1nSLb+rz+rDsYHI78e/s88bTb52kdih+F9I4SQALa25I Sg6fX6JGqkAFxsqpdeyiI7q3bkrN9+zvP8yZuy1Wx9CUBKDYPNx7d7Rj+UXlG8Alkojd BiQ8KaKt1EyOwiFMCldjLmJPcOSqyii1U9UBuYwi69E8b/XJU7gu4I33b8bVJzVAjoFU 8GLA== X-Gm-Message-State: AHPjjUj1W4m9VLjZrS9efgq1taQYG3Dyu1d5GHWgshqcDPODNyAdrMgO bbHYPEb5DkMPNSdMWo/SAXjOdUZWIg== X-Google-Smtp-Source: ADKCNb4aWizxTMHFgo7eN42gmKtgYKLbEoMHpW38h1+uFrydeY8kDLVRISJStzWbo2uQCYJcNNhp+dU9yG6y7sNsdog= X-Received: by 10.200.33.237 with SMTP id 42mr4572719qtz.157.1504605279685; Tue, 05 Sep 2017 02:54:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.156.142 with HTTP; Tue, 5 Sep 2017 02:54:09 -0700 (PDT) In-Reply-To: <7F2524B8-BC9C-483B-8A5D-94F177EACBAC@bobs-bits.com> References: <7F2524B8-BC9C-483B-8A5D-94F177EACBAC@bobs-bits.com> Date: Tue, 5 Sep 2017 12:54:09 +0300 Message-ID: To: Stephen Reay Cc: Sammy Kaye Powers , PHP Internals Content-Type: multipart/alternative; boundary="001a113f422c390f2c05586e37db" Subject: Re: [PHP-DEV] [VOTE] UUID From: arvids.godjuks@gmail.com (Arvids Godjuks) --001a113f422c390f2c05586e37db Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2017-09-05 12:24 GMT+03:00 Stephen Reay : > > On 5 Sep 2017, at 14:32, Arvids Godjuks wrote: > > That way the API and > features can be stabilized. > > > Hi Arvids, > > This is exactly why I (and possibly others) are in favour of this being > implemented as a few functions - the object side of things can then be le= ft > to a user land implementation, which is much easier to update and refine. > > Cheers > > > Stephen > > I would agree if this was something that was in flux or didn't have a set in stone standard that is universal across languages, platforms and all kinds of other software (databases come to mind, some have full-blown first-class citizen support for them, MySQL is also on the path to introducing them as field type last I heard too). This is about making a UUID a first-class citizen and having it universally available going forward, be able to use it as a type hint, same as DateTimeInterface is used these days (a lot, actually). Just provide a procedural-style API together with the OOP one. I recon the OOP one is gonna be used way more though - every userland implementation I ever saw used an OOP approach. Or just start packaging PHP code that is shipped with the interpreter: Ship the Ramsey\Uuid with 7.3 or some 7.2.x release. That one seems the defacto standard everyone uses, and it is used in my current project too :) Would be a perfect segway for the discussion we had on the list a few months ago about doing parts of the packaged modules in PHP itself. --=20 Arv=C4=ABds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Skype: psihius Telegram: @psihius https://t.me/psihius --001a113f422c390f2c05586e37db--