Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102662 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78078 invoked from network); 9 Jul 2018 10:34:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jul 2018 10:34:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=bjorn.x.larsson@telia.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bjorn.x.larsson@telia.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain telia.com designates 81.236.60.154 as permitted sender) X-PHP-List-Original-Sender: bjorn.x.larsson@telia.com X-Host-Fingerprint: 81.236.60.154 v-smtpout1.han.skanova.net Received: from [81.236.60.154] ([81.236.60.154:33276] helo=v-smtpout1.han.skanova.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/43-49043-34A334B5 for ; Mon, 09 Jul 2018 06:34:45 -0400 Received: from [192.168.7.8] ([213.64.245.126]) by cmsmtp with ESMTPA id cTUzfXl9XqklncTUzfXCKb; Mon, 09 Jul 2018 12:34:40 +0200 To: Zeev Suraski , Sara Golemon Cc: PHP internals References: <10e578d7-7a24-3ca0-ca0d-d5ed1a39dca3@telia.com> <80a8f588-05a3-48e5-bf40-bf1685b3105e@gmx.de> X-Mozilla-News-Host: news://news.gmane.org Message-ID: Date: Mon, 9 Jul 2018 12:34:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------3F37FE9B9D75F72E9B4CAA6D" Content-Language: en-GB X-CMAE-Envelope: MS4wfD6qVohe/uqkTWedb5B2sMb1/U7FJATIGbJsosXQsKzncHL0ox02ob8C3AHMTSCaf46sVxg/nazJzCSVeUhq7DN+HsqwGTtk+XSlu/o5A//KwosrF4o5 SgvMDrSlh0+JXSlGHVub5CDN0BVCWCwvlSElfckjH+3co5sNbFbgBbz7FRKl4B+97P8ulzW2RJNQPIwxjzjU0w274/oKxHkeLN4Vc4MSOP+srMFlJfdqMhZF Subject: Re: [PHP-DEV] [RFC] Typed Properties From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) --------------3F37FE9B9D75F72E9B4CAA6D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Den 2018-07-07 kl. 23:12, skrev Zeev Suraski: >> -----Original Message----- >> From:php@golemon.com [mailto:php@golemon.com] On Behalf Of Sara >> Golemon >> Sent: Friday, July 6, 2018 10:36 PM >> To: Christoph M. Becker >> Cc: Nikita Popov;stas@php.net; Björn Larsson >> ; Dan Ackroyd; >> Stanislav Malyshev; Marco Pivetta >> ; PHP internals >> Subject: Re: [PHP-DEV] [RFC] Typed Properties >> >> Just want to be annoying about this since the currently scheduled fork date for >> PHP-7.3 is 11 days off. >> 1/ Do we have *ANY* objections to additional alpha(s) to accommodate Typed >> Props? (I would propose two additional alphas) 2/ Do we actually need to hold a >> formal vote? (If so, that vote should start *now*) > Sara, > > I do see a couple of issues here. > > First, it may be a personal thing, but I feel that the flexibility towards adding this is very contrasty with the inflexibility shown as we headed towards the PHP 7.0 feature freeze - inflexibility that resulted in a rushed (and IMHO wrong) decision regarding how to implement the non-strict types. For the record - as I said back then - I think that the right way is to be flexible - the dates are just dates, and are - in all honesty - not that important - it’s the severe inconsistency that bothers me. > > Secondly, and somewhat related - typed properties isn't a small feature. It is, in fact, a pretty huge one. Making exceptions for a fairly minor feature or some extra deprecation is one thing. Making an exception for something as fundamental as that feels wrong. > > Even though Nikita's proposal and implementation look pretty solid, something as fundamental as that should go through a substantial active discussion period (which didn't really happen here as it wasn't clear whether this was headed for an exceptional 7.3 addition or not) - and independently - should perhaps go hand-in-hand with fixing the flaws of the non-strict types - something we can do in PHP 8. If we do the latter, then perhaps, just perhaps, we can introduce it hand-in-hand with typed variables - and if we do, it will be sensible to do it at the same time and not in a gradual rollout. Personally, I think even independently of typed variables, typed properties feel like an 8.0 feature, not a 7.x feature. > > Zeev > > You do have a point here about combining this with 8.0. I think it then would be great if an RFC like the one for 7.0 shows up soon. - https://wiki.php.net/rfc/php7timeline If 8.0 drags on I think it's beneficial to have this feature earlier, like now ;-) I was a bit surprised myself that the discussion has not been so active. On the other hand typed properties was up for discussion earlier and much of the disadvantages has now been remedied in this proposal. Given the high quality of this RFC and earlier discussions I personally felt it was not so much to ponder about. I can see some advantages with having this feature in a 7.x release: - It leaves more space for doing other stuff in 8.0 given that core   resources are scarce. - It adds a lot of value to 7.3, which is not packed with features. r//Björn Larsson --------------3F37FE9B9D75F72E9B4CAA6D--