Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93421 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94402 invoked from network); 20 May 2016 14:49:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2016 14:49:05 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.162 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.162 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.162] ([81.169.146.162:59408] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/D0-23824-FD32F375 for ; Fri, 20 May 2016 10:49:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1463755740; l=1845; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=2XPn5zqplveJ09D5q3sivzFkG03G6XIkrRuucnTx5uQ=; b=jKjx3VJbMYYW0xlUOBJgkcPhn9E/X+z2DVhKX8k/1fNDL7feqcfwv4v+ZqvOi3fd4u7 BnGMLn6sydaTGBLfYNnsU8n3yJm9psK7sQw2rMuBVOroiLVn8kTLYbtE3AjwuVYl/MrfS vaIo0I15IbqoZs1sXHd/5lsOrlItNTp5J0s= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3E6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f42.google.com ([74.125.82.42]) by smtp.strato.de (RZmta 37.27 AUTH) with ESMTPSA id 606660s4KEmxDSt (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Fri, 20 May 2016 16:48:59 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id a17so176639519wme.0 for ; Fri, 20 May 2016 07:48:59 -0700 (PDT) X-Gm-Message-State: AOPr4FWa5UkvQjQyGhVe/4IRdsMH1GHzqTu/Y743LHf2OBxNo1J2uSK+ZO8odxUhQmeNEzQ+o7Rzm7LAvLR2zA== MIME-Version: 1.0 X-Received: by 10.194.62.99 with SMTP id x3mr3806290wjr.128.1463755739658; Fri, 20 May 2016 07:48:59 -0700 (PDT) Received: by 10.28.53.132 with HTTP; Fri, 20 May 2016 07:48:59 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 May 2016 16:48:59 +0200 X-Gmail-Original-Message-ID: Message-ID: To: "S.A.N" Cc: internals Content-Type: multipart/alternative; boundary=047d7b86db22e681620533473072 Subject: Re: [PHP-DEV] Implement Generator::__invoke($value) as alias to Generator::send($value) From: me@kelunik.com (Niklas Keller) --047d7b86db22e681620533473072 Content-Type: text/plain; charset=UTF-8 2016-05-20 16:47 GMT+02:00 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 :) > I agree, but this is a general issue, nothing special to generators. --047d7b86db22e681620533473072--