Pierre Joye wrote:
hi Lester,

On Fri, Oct 12, 2012 at 10:22 AM, Lester Caine <les...@lsces.co.uk> wrote:
Clint Priest wrote:

Alright, here is the updated RFC as per discussions for the last few days:

https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented

If you could read it over, make sure I have all of your concerns correctly
addressed and we can leave this open for the two week waiting period while I
make the final code changes.


Now I remember why I did not like this wholesale ...

There is no easy way to identify that
$time->Hours = 12; is doing something other than a bog standard 'store 12 in
$Hours' while a simple $time->Hours(12); immediately makes it obvious that
there IS some processing involved. And period = $time->Hours(); flags that
the result is calculated from some other value in the class.

So IS this new layer of magic mirrors really necessary at all? Is it adding
to the complexity at the expense of the inherent readability of the code
later on?

I suppose the argument is that 'people expect it' but that is only because
they are not yet used to the better way of working that IS PHP ... just
because some people expect cryptic code should that be any reason to weigh
PHP down further with it?


Please keep the discussion sane without repeating the same arguments
over and over again. This RFC is about adding a new cleaner
getter/setter than the __get/__set we have now, which forces us to do
some more useless work for basic needs. The complexity you are talking
about already exist and you already mentioned this argument already,
we got it.

Sorry , but if the complexity was any good, why does it need to be changed?
Simply scrap the whole lot and get back to a more sane solution. I'm sorry but this is just the whole problem with PHP 'development' ... people push half developed ideas in, and then it's used as the basis for moving things further forward, when a step back MAY be the best way forward! Has ANY of the new stuff that has been added to PHP recently ACTUALLY been fully finished? In many cases you are now discussion how to make them work better because what exists has problems that will be fixed later :( And we have to live with the consequences in the real world.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to