Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93905 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73351 invoked from network); 11 Jun 2016 19:38:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2016 19:38:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=mails@thomasbley.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mails@thomasbley.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thomasbley.de from 85.13.128.151 cause and error) X-PHP-List-Original-Sender: mails@thomasbley.de X-Host-Fingerprint: 85.13.128.151 dd1730.kasserver.com Received: from [85.13.128.151] ([85.13.128.151:34731] helo=dd1730.kasserver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/A7-04630-6986C575 for ; Sat, 11 Jun 2016 15:37:59 -0400 Received: from dd1730.kasserver.com (dd0803.kasserver.com [85.13.146.34]) by dd1730.kasserver.com (Postfix) with ESMTPSA id ED08E1A80AB7; Sat, 11 Jun 2016 21:37:55 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-SenderIP: 95.91.215.134 User-Agent: ALL-INKL Webmail 2.11 In-Reply-To: References: To: pthreads@pthreads.org, internals@lists.php.net, pjsturgeon@gmail.com, dmitry@zend.com Message-ID: <20160611193755.ED08E1A80AB7@dd1730.kasserver.com> Date: Sat, 11 Jun 2016 21:37:55 +0200 (CEST) Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: mails@thomasbley.de ("Thomas Bley") Hi, what about having "strict classes"? A strict class would be like a database table, each property defined must have a type. Each property defined must be initialized before being accessed, or have a default value. e.g. strict class Foo { public int $id; public bool $enabled; public DateTime $created; } Regards Thomas Dmitry Stogov wrote on 10.06.2016 14:37: > Hi, > > > I hardly worked on implementation of this patch for a week, but I still don't > like it. > > It makes 15% slowdown on each property update in existing PHP code (without > types), and I don't see a way to improve this. > > Update of typed properties is going to be even more expensive. > > Benchmark results are included into RFC (and not changed with the latest > version of the patch). > > > -1. > > > Thanks. Dmitry. > > ________________________________ > From: Joe Watkins > Sent: Friday, June 10, 2016 1:38:04 PM > To: PHP internals; Phil Sturgeon > Subject: [PHP-DEV] [RFC][Vote] Typed Properties > > Afternoon internals, > > The vote for typed properties has been restarted. > > Please take part: https://wiki.php.net/rfc/typed-properties > > Cheers > Joe >