Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63549 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3265 invoked from network); 20 Oct 2012 07:30:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2012 07:30:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=amaury.bouchard@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=amaury.bouchard@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: amaury.bouchard@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-ye0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:47918] helo=mail-ye0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/69-22055-50352805 for ; Sat, 20 Oct 2012 03:30:13 -0400 Received: by mail-ye0-f170.google.com with SMTP id r12so116080yen.29 for ; Sat, 20 Oct 2012 00:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=PqJBB9F9X9xWM0vR3SFQR9k6k/5t1lNmOOOIAU8xmKc=; b=x1PL/aEgpMV/WVue2N96FCNd4ygRZt3mQT3giOLywkNIceivFXtFrvCnNbRkiWwgIQ IILuiTxh85OhnhZm6UARkd6A5EcuAYB3k2GAh+cYWNzR+qqLGv9ZtBMdF5gIDP5Lm3yP MOzEwHYgzaeHEOKca1oKUmnmpRn/SFy7kzKxmDp9x3xwCZDo+FNgY345UUXXgjEAY7n9 bgu5uV5BIw24hmNo8sF9WhVzhTgviVRVHrVA6sZOkSje7QpM66T+hfVEeoD3qKShM2xu ny/ghjzvATJpVWugrzJALPNU4x3UT+p1zZI3cT4eMZmR4tRnnCKxi91hThgmtvE+gIw3 NYRQ== Received: by 10.236.134.18 with SMTP id r18mr3267637yhi.45.1350718210672; Sat, 20 Oct 2012 00:30:10 -0700 (PDT) MIME-Version: 1.0 Sender: amaury.bouchard@gmail.com Received: by 10.147.152.21 with HTTP; Sat, 20 Oct 2012 00:29:49 -0700 (PDT) In-Reply-To: <9570D903A3BECE4092E924C2985CE485612C2595@MBX214.domain.local> References: <9570D903A3BECE4092E924C2985CE485612C2595@MBX214.domain.local> Date: Sat, 20 Oct 2012 09:29:49 +0200 X-Google-Sender-Auth: ooznD17U6oqcgBYMEgoC5wOuDuY Message-ID: To: Clint Priest Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf303a360b23881304cc789704 Subject: Re: [PHP-DEV] [RFC] Accessors : read-only / write-only keywords From: amaury@amaury.net (Amaury Bouchard) --20cf303a360b23881304cc789704 Content-Type: text/plain; charset=ISO-8859-1 read-only => final set null; It begins to be verbose. As I said many times, why don't you want to use the "const" keyword? It already exists and is pretty well understood by everybody. 2012/10/20 Clint Priest > I had thought of a deviation on some of the ideas presented to get rid of > read-only/write-only while still keeping the ability to maintain their > effect, if we so decide that the feature is wanted. Here it is: > > class TimePeriod { > private $Seconds; > > public $Hours { > get() { return $this->Hours; } > final set NULL; > } > } > > It's close to what's been suggested but is pretty clear that there IS NO > SETTER it could not be called within the class and since its final it > cannot be over-ridden. I've included this in the change tracking document. > > Thoughts? > > -Clint > > > --20cf303a360b23881304cc789704--