Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63974 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43152 invoked from network); 19 Nov 2012 15:36:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2012 15:36:40 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:50036] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/50-41116-6025AA05 for ; Mon, 19 Nov 2012 10:36:38 -0500 Received: by mail-lb0-f170.google.com with SMTP id j14so3962187lbo.29 for ; Mon, 19 Nov 2012 07:36:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kS1nrdmWTaImULR8xJ+hDyEcR1C04UNszbhSfW9WBN0=; b=XKQiE1dcs+FONPo6PvwUU0qR5DR8lNx7kbM+VB37xnrSWLFttCgRBIlqZLDe31wITk cOTjAHYjtv4dBj0cWUEr8e76IchXdFeQc0olQRfa9eVbMFeB/AzYMwUm2AhznVmszSED CQOr6nV2FGKYotOSs3W6h5ldZwqI0LVXRBbAuux4yBMCSX9y/DfEC2jsdw4KeELp3INa yKg5TcvqhpVDEsGi7bpudQFOu4g9H/c42TPV77slWv4/AfUEojzEniTPqSgx2jNeYtko Yn2i2zzRJdM0MNNuEVjFfDygW4MQ6JtJ48QglKj0tADQS+lzJkfl8pFZZxizeGnhpdCX I/ZQ== MIME-Version: 1.0 Received: by 10.152.110.234 with SMTP id id10mr11964026lab.15.1353339395344; Mon, 19 Nov 2012 07:36:35 -0800 (PST) Received: by 10.112.83.100 with HTTP; Mon, 19 Nov 2012 07:36:35 -0800 (PST) In-Reply-To: <50A97B13.8040303@zerocue.com> References: <50A97B13.8040303@zerocue.com> Date: Mon, 19 Nov 2012 16:36:35 +0100 Message-ID: To: Clint Priest Cc: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=f46d0408394deb895504cedae1a9 Subject: Re: [PHP-DEV] [RFC] Property Accessors v1.2 Consensus Changes From: nikita.ppv@gmail.com (Nikita Popov) --f46d0408394deb895504cedae1a9 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Nov 19, 2012 at 1:19 AM, Clint Priest wrote: > Can anyone who has an interest in this project please review over the > "Current Consensus Changes" section of this document: > > https://wiki.php.net/rfc/**propertygetsetsyntax-as-** > implemented/change-requests > > Lets hear if there are any other concerns, otherwise in the next couple of > days I will integrate these changes into the main RFC document and begin > work on the changes from 1.1 -> 1.2. > > Still left open (undecided) is internal accessor method visibility and > callability. Primarily this is between Stas and Nikita, I prefer not > visible (makes more sense to me) but callable (less difficult to implement, > simpler for the code). I would appreciate some more input on this topic > from anyone interested. > > How long is it before 5.5 is in feature-freeze? I'm guessing at this > point that this will not make the 5.5 release, but depends on the powers > that be. > > -Clint > The changes look good to me. Two notes: 1. The "internal accessor method visibility and callability" point should really be "should accessors be implemented as magic methods?" Might help to clarify what the discussion was actually about. 2. I never really meant the "DateTime $date;" syntax as just a shorthand notation for the automatic setter with typehint. Rather it was meant as an alternative way to do the typehinting in the first place. I.e. instead of public $date { set(DateTime $date) {} } you would do public DateTime $date { set($date) { } } (like in C# for example). I would have preferred this way (mainly because it allows to typehint even without specifying accessors), but I can also live without it ^^ Thanks for your work on this, Nikita --f46d0408394deb895504cedae1a9--