Re: RFC Proposal - Attributes read/write visibility

From: Date: Mon, 16 Jul 2012 15:25:35 +0000
Subject: Re: RFC Proposal - Attributes read/write visibility
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-61312@lists.php.net to get a copy of this message
You already have the read-only/write-only option proposed on that RFC - by not defining set and vice-versa for write only - or by inserting new keywords (not sure if this is needed/optimal). And nowhere in PHP do we have the syntax you propose as A:B, and I even recall a short array [a:1, b:2] syntax from being promptly rejected in the past, although I can't recall the argument against it. Plus that RFC can allow for additional implementation of something like a lambda/other function calls; a lot of things way more useful/interesting to see than just controlling visibility.

« previous php.internals (#61312) next »