Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93420 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92902 invoked from network); 20 May 2016 14:47:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2016 14:47:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.178 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.223.178 mail-io0-f178.google.com Received: from [209.85.223.178] ([209.85.223.178:35968] helo=mail-io0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/70-23824-8632F375 for ; Fri, 20 May 2016 10:47:05 -0400 Received: by mail-io0-f178.google.com with SMTP id f8so15834164ioe.3 for ; Fri, 20 May 2016 07:47:04 -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; bh=zD77P0gh4cdKKI58XGfDE3/Ar0Ybp/uWItjrrNaffcg=; b=KD48nTU+yjfheeirxzIDDi348AVeTx3uCUWbN5k4LdDDNI4hftosPhMUalip37a0jV RmzAur1Slr+bk/511bCuaNm04G3D09URUZI2MkcS3kMExpr2PKr1J5YYcgg0bDC0+7Rl QcAdcLCwluXQoO0aCzP7mY/lQEsDD3ElGbNCKrhjca46ZnaFhh+aHH5r1m1V1nc48Lf2 Hvmc5sObqgZjFzfHGJ+YBp7N/b+ibmPQ4FVD1vh3dOLMZdF/4mjL/nPcD0TBRerp8ZkR aFLiqFdyzxTgpw+RZxJRMilr6aZFT7ohqLCJLzqp6XK3exf4gxC17Tor/ie3SNv2xrss aCRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=zD77P0gh4cdKKI58XGfDE3/Ar0Ybp/uWItjrrNaffcg=; b=EDmndCId++bzTEvKqF8/tMWeSrukiBlyJSYW+Ucq2/i5FMhY/DFgP/8WW8ME3DbKOq n4JcITD4BPO3o+NS967/Y5rTWFI5lmQc+njgw2KrJLGzh+QqRxTKepKrG4FhPkJXXolt M74hWBtoIcbjUXoVGJC0QNacEOqNZUnxEp+mA9M4NBlkzDrgXxWAGuje4//o4tmNcQz1 1yEKchQMuHDHCVjznuJlxM5NaYVYxq5Ox6VpL90eC+QxQ3qsISxL4y9A16FVjMzxQV6q vMGZlzUq8so+Ee1zwQxR2T+LhIL+2Q7WIfAY8pD/xp5sTxVkg2B6HHHaJXZR1LFWn/Df pI1g== X-Gm-Message-State: AOPr4FU5UIXng4eHG0QaPROmqGnybMEH+qgYPeRZLYfyln3tuAdvLEDykjDsJS6AV+3DFiG2C1MCUKJLSr9PRw== MIME-Version: 1.0 X-Received: by 10.107.129.216 with SMTP id l85mr3698120ioi.170.1463755621793; Fri, 20 May 2016 07:47:01 -0700 (PDT) Received: by 10.50.247.137 with HTTP; Fri, 20 May 2016 07:47:01 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 May 2016 17:47:01 +0300 Message-ID: To: Niklas Keller Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Implement Generator::__invoke($value) as alias to Generator::send($value) From: ua.san.alex@gmail.com ("S.A.N") 2016-05-20 17:41 GMT+03:00 Niklas Keller : > 2016-05-20 15:34 GMT+02:00 S.A.N : >> >> Many interfaces work with callback functions, but they might work with >> the generators, if there was a method Generator::__invoke($value). > > > You can just use [$generator, "send"]. > Yes, but it is slow and not nice :)