Re: [PATCH] [RFC] Closures and lambda functions in PHP

From: Date: Tue, 24 Jun 2008 08:22:00 +0000
Subject: Re: [PATCH] [RFC] Closures and lambda functions in PHP
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-38563@lists.php.net to get a copy of this message
On Tue, Jun 24, 2008 at 9:19 AM, Kalle Sommer Nielsen <kalle@php.net> 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

« previous php.internals (#38563) next »