Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61717 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75604 invoked from network); 24 Jul 2012 18:32:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 18:32:12 -0000 Authentication-Results: pb1.pair.com header.from=alex.aulbach@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=alex.aulbach@gmail.com; spf=pass; 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:46353] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/F1-01267-B2AEE005 for ; Tue, 24 Jul 2012 14:32:12 -0400 Received: by pbbrp12 with SMTP id rp12so14038862pbb.29 for ; Tue, 24 Jul 2012 11:32:08 -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=RZnKIt/f/LIUpn7Kbxb+FswIBGrHVXock9GUZXs/GEo=; b=ZGEvWpBajUJ2175G4ykUy+qG/XTx+BSWuGSOSMHRYZGVLmJnPOm6QSToFqi6V+9j3t r5POkpQa08WG067nCI/9xo0WBuI7amYWMceerVvEChtoVubgxo17XaJ2UqtbYStcaGCm 15h7jACEW9o6D2vOazUXjzb/jG0H+r3wNnyBb9zLuQ6XssAPT5Q8ObP9jBjqxznXtV71 BfqSoIrOOnF3sJbJPkoajtxZKXTwfgQL9a0NDuJ5j9xmEk3UuAfIb56BnDlmOhz6qBzl 6mkfGelGKHxd0PqEpKaG0bHg5jzRpDxTtK2J4dtPhHbG4z1VzV1FnbcNB4Ew5r9kBA99 QuZA== MIME-Version: 1.0 Received: by 10.68.217.226 with SMTP id pb2mr46432315pbc.105.1343154728269; Tue, 24 Jul 2012 11:32:08 -0700 (PDT) Received: by 10.68.31.7 with HTTP; Tue, 24 Jul 2012 11:32:08 -0700 (PDT) In-Reply-To: <500EE3B9.8010902@ajf.me> References: <500EDCC7.1020402@ajf.me> <500EE3B9.8010902@ajf.me> Date: Tue, 24 Jul 2012 20:32:08 +0200 Message-ID: To: Andrew Faulds Cc: 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/24 Andrew Faulds : > But PHP functions usually have side-effects, they aren't strict mathematical > functions. Ah, you might mean str_tok()? Are there more, do you have a list? But we're in PHP-programming-context. You write a function in PHP, you call it and it will return once called. I see there no exeption. > So complaining about this is rather pointless. I don't complain about the past. I just think now, that if it doesn't behave like a function it shouldn't be called function. A function which returns as an object and is not completed is not a function. And if other languages do so, my argument will be the same. We need not to make the same mistake again! :) -- Alex Aulbach