Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61799 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93644 invoked from network); 25 Jul 2012 23:54:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2012 23:54:48 -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.212.42 as permitted sender) X-PHP-List-Original-Sender: alex.aulbach@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vb0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:52529] helo=mail-vb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/83-08189-74780105 for ; Wed, 25 Jul 2012 19:54:48 -0400 Received: by vbbfs19 with SMTP id fs19so1318310vbb.29 for ; Wed, 25 Jul 2012 16:54:44 -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=MrYOy6SdRGRtZV1cAYpOwL/3oaAphX79AmJtikBncgk=; b=g8FE0nf0Hda2nk1IIxNa5ySOoSfBxDL1WbNrO/joZRrRPLXWHzn4TmaG9aSiJic2s1 ciEepj1CQfaYHZk5bQDw4axsiGMzERlNAigUArwHMu+lS2x1omRWtX5wB5KaMM4VpDba OJ3YAbNrvXb6dO7XRZJf77Mb/OgBwZfHGw12FR1AuTCxT/TzMe8e7c27N9Xd+P2aA0lf /JiYn03Dytjhr8t1/ABpersZjUvG74+m7sI0W+eBosg7Bq39geGHyG/L5ki9dk+iuyqw uW4L7N2fXfHLh/mfYCa7VyNvh1c0ciy/Jp0bbzKPo2sbWhqNJ+nSei4KakQ5og9B1Wux nFWA== MIME-Version: 1.0 Received: by 10.52.26.240 with SMTP id o16mr6090641vdg.20.1343260484641; Wed, 25 Jul 2012 16:54:44 -0700 (PDT) Received: by 10.58.171.201 with HTTP; Wed, 25 Jul 2012 16:54:44 -0700 (PDT) In-Reply-To: <7544BE6A-7754-4303-BBCF-3D561FD82963@gmail.com> References: <500EDCC7.1020402@ajf.me> <500EE3B9.8010902@ajf.me> <500EEA76.1030407@ajf.me> <5010138D.5050804@ajf.me> <501015B9.6050704@ajf.me> <501026DB.6030507@ajf.me> <501033C6.8040603@dmi.me.uk> <7544BE6A-7754-4303-BBCF-3D561FD82963@gmail.com> Date: Thu, 26 Jul 2012 01:54:44 +0200 Message-ID: To: Yahav Gindi Bar Cc: Nikita Popov , Dave Ingram , PHP Development Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Generators in PHP From: alex.aulbach@gmail.com (Alex Aulbach) 2012/7/26 Yahav Gindi Bar : > "yielder" sounds quite weird don't you think (but my native language is not English too.. so don't blame me at english stupid conclusions!) > >> Fact: generator is not a good keyword, because too common. > I can't see the connection... people relate the generator keyword to the iterators so what's the problem using it? PHP will just complain in existing scripts if you use "generator" as function-name and stops compiling. I think this is stupid, but that's a completly different discussion. > what about using the "iterator" name as generators keyword? because it does return iterators... well, wouldn't think, that it can be that easy. > iterator foo() { ... yield $bar; ... } sounds OK for me... and got a meaning too. > though it can confuse some people with the original iterators... But it's just what it does. > BTW: I still don't think that the generators need a unique word and I suggest using functions, but I didn't read al the mails chain, so I assume that I'll find there the answer. Of course you will! These are not the droids your looking for. Ups. wrong line. :) -- Alex Aulbach