Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66445 invoked from network); 24 Jun 2008 08:22:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2008 08:22:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.173 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 209.85.200.173 wf-out-1314.google.com Received: from [209.85.200.173] ([209.85.200.173:45711] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/90-62551-DAEA0684 for ; Tue, 24 Jun 2008 04:22:05 -0400 Received: by wf-out-1314.google.com with SMTP id 26so2321183wfd.26 for ; Tue, 24 Jun 2008 01:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=SG5lJiAiXUejKloH/587Ik12fvdiZtMxOoMauHYwg4Y=; b=m+KVPk0xF8EGTLaMyqtkbRBLmqkzndZGQWMD4PY10WZuhVkqGgsGzd/bvcazGvLqjF g8m0jhfYSmMxll6s+LE/YkSisBMKTHVb7u/G0H4q8TuKk+F/eYYzplFE7oGUNO9iELjA esoVZdZzqPAP0yKRw4iv82M9TDedwewvdR/Lw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=c/2xcrDuYPNXf/qcRyXWF626CfkVKZekTrx+bdh9iSfjNYf/JeuZMZqyyEmsWQ54TS PsvgdTYb7aNoVY0xCMAaVOS/PTRLmfdbLRoIcW7q4xCI+pyLotimO7lG3xMM8fxf5x0q EIt9RG2lCwAsZ5mYy3L49VUMp/arb4pTPqlro= Received: by 10.142.212.19 with SMTP id k19mr5062165wfg.155.1214295720841; Tue, 24 Jun 2008 01:22:00 -0700 (PDT) Received: by 10.142.110.9 with HTTP; Tue, 24 Jun 2008 01:22:00 -0700 (PDT) Message-ID: <98b8086f0806240122t438139ev181f159e2e1f41ae@mail.gmail.com> Date: Tue, 24 Jun 2008 10:22:00 +0200 To: "Kalle Sommer Nielsen" Cc: internals@lists.php.net In-Reply-To: <20080624001927.68jooftqlckgkos8@zesix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4856A547.3080801@gmx.net> <698DE66518E7CA45812BD18E807866CE01B11811@us-ex1.zend.net> <4858FCC7.5030305@gmx.net> <698DE66518E7CA45812BD18E807866CE01B70D73@us-ex1.zend.net> <48596C9E.2080605@gmx.net> <485FE3C1.4010303@zend.com> <20080624001927.68jooftqlckgkos8@zesix.com> Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: troelskn@gmail.com ("troels knak-nielsen") On Tue, Jun 24, 2008 at 9:19 AM, Kalle Sommer Nielsen wrote: > Another subject I would like to see now the closures has been brought up > again > is, how about adding type hinting in method/function prototypes: > > function call(function $callback) > { > $callback(); > } Good point. If we implement closures as objects, as already suggested, then it's simply a matter of typehinting to the classname we pick. -- troels