Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61744 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68635 invoked from network); 25 Jul 2012 07:42:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2012 07:42:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=alex.aulbach@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=alex.aulbach@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: alex.aulbach@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:58796] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/2D-27263-353AF005 for ; Wed, 25 Jul 2012 03:42:12 -0400 Received: by pbbrp12 with SMTP id rp12so1057411pbb.29 for ; Wed, 25 Jul 2012 00:42:09 -0700 (PDT) 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=KRK2M8h93t4uBmiUbbcUGBTbAvA1uwXy6JmHGETVOe8=; b=vzlUER6GSuEoHggLHXQh3A0xAG6Bj//GQ7HP3x8ylGX4AqyYBVX9Qbdyex+jWz7Tym Uf/zpmu+PaIqBbamfNNugF/3aARcxhndrlP7BWd6PxGYL9hvPcYufh0Qyh9eqg4RVeZt 8p4IgQHW/d1O1qievW9EB29lL7gfcb9xuePDpWpcFBJhDiWiyET18m7nCzXjQLw3hIbC Qv7vEULMnMYxrL00jVI04TJ0TAG+arELnJfWB3zzxsVJVq9DwUe6KTlvVgPitZSnYg7b XqCtF/ahW5WS0zvSbRTc2XAgy+ISikuMLg5fELrd6DASo8oLXvEg2GtJZSzyBRla1/Zy 3bzQ== MIME-Version: 1.0 Received: by 10.68.217.100 with SMTP id ox4mr51248546pbc.87.1343202128905; Wed, 25 Jul 2012 00:42:08 -0700 (PDT) Received: by 10.68.31.7 with HTTP; Wed, 25 Jul 2012 00:42:08 -0700 (PDT) In-Reply-To: References: <500EDCC7.1020402@ajf.me> <500EE3B9.8010902@ajf.me> <500EEA76.1030407@ajf.me> Date: Wed, 25 Jul 2012 09:42:08 +0200 Message-ID: To: Sherif Ramadan Cc: Andrew Faulds , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Generators in PHP From: alex.aulbach@gmail.com (Alex Aulbach) 2012/7/25 Sherif Ramadan : > 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