Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104840 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46657 invoked from network); 21 Mar 2019 14:08:46 -0000 Received: from unknown (HELO mail-ot1-f50.google.com) (209.85.210.50) by pb1.pair.com with SMTP; 21 Mar 2019 14:08:46 -0000 Received: by mail-ot1-f50.google.com with SMTP id f10so5017982otb.6 for ; Thu, 21 Mar 2019 04:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q2uA/Ay5QRxLUruzWtAXrJ37o1HiuAcB0JgyJ9hkYLQ=; b=hpMKtSYi9zW0/5Fwzketxio6Zxe1ZrMBjPwhscYYAlId68tRKXSZ7qLM0ZBmvh2wN5 ShZdh4BX0Xv/om3B4bpnv1WmtMKkOdtn0DKWkXzByCVfDLDQJoXKqeB7v8Vyn2D3j0+J fqpz17D2B5xbOs0iyMV5vBHsSUX5LcV99awbkzrnI0DYZ9sVgRNUfsUctMcO9DHJmVI5 bZa0whfFdeSDKfJBPEVzHz0vX/I/cmQf3yGihilkHNGWuMqDxKqdgif4YWwy4IJVoxhh jVJvIQ/9eWwnPsaV+Oj22l3ZQ3I35pkFAWaaOG9jK1HzomRhqk6Re6KSUQGPtrNRFDvT Mi9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q2uA/Ay5QRxLUruzWtAXrJ37o1HiuAcB0JgyJ9hkYLQ=; b=Ey7IM5+PU4dxvRi2/qrBxqHxkird1ZHRVwl6FX7Qa/r6BActcec9sbenrBjGm+noQq KOOMlESEWhcWw/yLS+II4doetXmfLRs1YZzV31pr+hgEbjlJ6uMd1GfxXrT/z/zMWEQ0 wsMpfDJANQkg1V8/yHl6hkX7xSt7oT1blwIqG8l5fuECMXlGk5f93T2kXfD9LfREtrxE vvNpINFICUrHDBWsogwtQi4tpDJQ1+m1Uls7Qgva2lOq3aBn0TZuQoLUz+SsG68tTa8z OpU1SrpVSzYMutao+oUIqDIyIoH4gIshuGYqBXddNfTx+NIpYFdxJq1jX0AHDPBQ1zGz 6J7w== X-Gm-Message-State: APjAAAUp6d3JbBBRdO+fy+sOKtMqMyLYxYUiSWMkyyCe5KClUbvKtOrV xjpbKGmflWQ/SHV9LhMg4GFgDd926+B3Ang7Z6c= X-Google-Smtp-Source: APXvYqz6VQF45FnNn8+Hr27BFIQZJkT80TlnO1mjD0uJO0HhIRUf0Wdz9Y5gN/utRRlyq7tERDXXJPAHhHXD9va2GGE= X-Received: by 2002:a9d:62c8:: with SMTP id z8mr1959229otk.144.1553166053215; Thu, 21 Mar 2019 04:00:53 -0700 (PDT) MIME-Version: 1.0 References: <85417a73-a391-c9ad-49aa-5b88c65b0900@gmail.com> <5c8ea43d.1c69fb81.e50f1.7d18SMTPIN_ADDED_MISSING@mx.google.com> <0d34b3b1-866e-4bab-9a8f-3c70f1fc9721@www.fastmail.com> <752c83ab-0e6f-d8f5-ff15-e1f75b5d04b5@gmail.com> <301552a9-6f01-3177-0e57-3d9aac54cc0c@gmail.com> <7A288F12-1227-4E78-8F9A-0959432F02D8@gmail.com> In-Reply-To: <7A288F12-1227-4E78-8F9A-0959432F02D8@gmail.com> Date: Thu, 21 Mar 2019 11:00:41 +0000 Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] RFC Draft: Comprehensions From: robehickman@gmail.com (Robert Hickman) I was only making a point for where a non-generator version of comprehensions could be useful, under the premise "Therefore, a lazy-evaluating syntax is more powerful, in that it can do everything an eager-evaluating one can do *and more*.". This implies that it dosn't have any downsides, whereas performance may be a downside. On Thu, 21 Mar 2019 at 07:54, Rowan Collins wrote: > > On 21 March 2019 00:39:20 GMT+00:00, Robert Hickman wrote: > >For my use case of PHP, get some content from a DB and dump it into a > >template, I don't see much benefit to generators. > > With respect, so what? I never said that every use case benefits from generators, nor are we discussing whether generators should be added to the language. > > Regards, > > -- > Rowan Collins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >