Re: Re: Generators in PHP

From: Date: Wed, 25 Jul 2012 07:42:08 +0000
Subject: Re: Re: Generators in PHP
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
2012/7/25 Sherif Ramadan <[email protected]>:
> PHP made implementation mistakes in the past that led to awkward
> behavior (like objects passed by value in PHP4), but that's never
> stopped things from moving forward and offering up useful features
> that users want. I think putting the technical details aside the
> engine can aid a developer in distinguishing between spotting
> unintended side effects and preventing disastrous consequences.

I like that kind of agile programming, too.

But if someone like me says "come on, lets make it a little bit more
easy, because returning objects from functions is some kind of
unconventional; many developers will make mistakes here..." - why not?
They will. I can tell by sure.

Since I begun reading this mailing list I have the impression, that
there are only PHP-programmers like us out there. But the fact is,
that the most PHP-programmers didn't even read the manuals completly.
You may say "Their fault" "Are they programmers, if they don't?", but
this is first a little bit of ignorance because second this is one of
the best features, that PHP has - this "nicely flow", everybody can do
it. I always think of Bob Ross, when I explain PHP.

But it's ok, there are no mistakes, there are just happy little accidents. :)

[means: I will not complain any more]

-- 
Alex Aulbach


Thread (142 messages)

« previous php.internals (#61744) next »