Movatterモバイル変換


[0]ホーム

URL:


Re: PATCH: Implementing closures in PHP

From:Ryusuke SEKIYAMADate:Fri, 28 Dec 2007 16:45:03 +0000
Subject:Re: PATCH: Implementing closures in PHP
Groups:php.internals 
Request:Send a blank email tointernals+get-34272@lists.php.net to get a copy of this message
>any idea about the possibility of hash conflict?How about this patch?http://www.opendogs.org/pub/php-5.3dev-071228a.patchThis patch is PHP 5.3 version of the patch I have introducedin my blog. (written in Japanese)1.http://d.hatena.ne.jp/rsky/20071126/11960778602.http://d.hatena.ne.jp/rsky/20071128/11962607323.http://d.hatena.ne.jp/rsky/20071130/1196426672This patch contains two features, anonymous function andsquare bracket array syntax.Anonymous function can be used in loop (does not exhaust memoryas create_function() in loop), work with opcode cachesand also can be called directly like JavaScript's one.For example:% php -r 'print_r(array_map(function($n){ return $n * $n; }, [1, 2, 3]));'Array(    [0] => 1    [1] => 4    [2] => 9)% php -r 'function($str){ echo $str, "\n"; }("foo");'fooMore examples are included in this archive:http://www.opendogs.org/pub/php-5.3dev-071228-anon-patch.zip-- /** * Ryusuke SEKIYAMA * rsky0711@gmail.com */

Thread (168 messages)

#SubjectAuthorDate
28399PATCH: anonymous functions in PHPWez FurlongSun, 18 Mar 2007 23:41:16 +0000
28400   Re: PATCH: anonymous functions in PHPJan LehnardtSun, 18 Mar 2007 23:54:00 +0000
28401   Re: PATCH: anonymous functions in PHPWez FurlongMon, 19 Mar 2007 00:30:37 +0000
28402      Re: Re: PATCH: anonymous functions in PHPJim WilsonMon, 19 Mar 2007 00:45:29 +0000
28403      Re: PATCH: anonymous functions in PHPWez FurlongMon, 19 Mar 2007 00:48:31 +0000
28404         Re: Re: PATCH: anonymous functions in PHPGwynneMon, 19 Mar 2007 01:27:12 +0000
28405            Re: Re: PATCH: anonymous functions in PHPWez FurlongMon, 19 Mar 2007 01:30:37 +0000
28407               Re: Re: PATCH: anonymous functions in PHPGwynneMon, 19 Mar 2007 02:13:28 +0000
28410                  Re: Re: PATCH: anonymous functions in PHPMarcus BoergerMon, 19 Mar 2007 07:48:00 +0000
28411         Re: Re: PATCH: anonymous functions in PHPMarcus BoergerMon, 19 Mar 2007 07:54:00 +0000
28421         Re: PATCH: anonymous functions in PHPJacob SantosMon, 19 Mar 2007 13:05:18 +0000
28428            Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 15:44:32 +0000
28426         Re: Re: PATCH: anonymous functions in PHPJon PariseMon, 19 Mar 2007 15:16:06 +0000
28440      Re: Re: PATCH: anonymous functions in PHPRichard LynchMon, 19 Mar 2007 20:23:53 +0000
28406   Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 02:06:41 +0000
28408      Re: PATCH: anonymous functions in PHPWez FurlongMon, 19 Mar 2007 02:18:53 +0000
28409         Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 05:43:46 +0000
28417            Re: PATCH: anonymous functions in PHPChristian SchneiderMon, 19 Mar 2007 09:20:31 +0000
28431            Re: PATCH: anonymous functions in PHPSean CoatesMon, 19 Mar 2007 18:30:49 +0000
28432               Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 18:48:05 +0000
28434                  Re: PATCH: anonymous functions in PHPSean CoatesMon, 19 Mar 2007 19:25:10 +0000
28435                     Re: PATCH: anonymous functions in PHPWez FurlongMon, 19 Mar 2007 19:33:27 +0000
28437                        Re: PATCH: anonymous functions in PHPSean CoatesMon, 19 Mar 2007 19:45:12 +0000
28438                        Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 20:15:14 +0000
28441                           Re: PATCH: anonymous functions in PHPRobert CummingsMon, 19 Mar 2007 20:34:23 +0000
28445                              Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 20:59:17 +0000
28447                                 Re: PATCH: anonymous functions in PHPRobert CummingsMon, 19 Mar 2007 21:13:21 +0000
28448                                    Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 21:17:02 +0000
28449                                       Re: PATCH: anonymous functions in PHPRobert CummingsMon, 19 Mar 2007 21:25:27 +0000
28453                                          Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 21:34:54 +0000
28455                                             Re: PATCH: anonymous functions in PHPRobert CummingsMon, 19 Mar 2007 21:38:23 +0000
28460                                             RE: [PHP-DEV] PATCH: anonymous functions in PHPAndi GutmansMon, 19 Mar 2007 21:59:13 +0000
28461                                                Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 22:03:54 +0000
28462                                                   Re: PATCH: anonymous functions in PHPLukas Kahwe SmithMon, 19 Mar 2007 22:08:20 +0000
28465                                                      RE: [PHP-DEV] PATCH: anonymous functions in PHPAndi GutmansMon, 19 Mar 2007 22:22:54 +0000
28474                                                Re: PATCH: anonymous functions in PHPWez FurlongTue, 20 Mar 2007 00:02:46 +0000
28477                                                   RE: [PHP-DEV] PATCH: anonymous functions in PHPAndi GutmansTue, 20 Mar 2007 04:59:04 +0000
28478                                                      Re: PATCH: anonymous functions in PHPXueferTue, 20 Mar 2007 08:03:40 +0000
28505                                                      RE: [PHP-DEV] PATCH: anonymous functions in PHPRichard LynchWed, 21 Mar 2007 00:02:31 +0000
28507                                                         RE: [PHP-DEV] PATCH: anonymous functions in PHPRobert CummingsWed, 21 Mar 2007 00:24:13 +0000
28538                                                         Re: PATCH: anonymous functions in PHPJacob SantosWed, 21 Mar 2007 16:33:00 +0000
28542                                                            Re: PATCH: anonymous functions in PHPStanislav MalyshevWed, 21 Mar 2007 18:45:59 +0000
28545                                                         Re: PATCH: anonymous functions in PHPMichael WalterThu, 22 Mar 2007 11:36:14 +0000
28546                                                            Re: PATCH: anonymous functions in PHPChristian SchneiderThu, 22 Mar 2007 13:09:21 +0000
28547                                                               Re: PATCH: anonymous functions in PHPMichael WalterThu, 22 Mar 2007 14:19:11 +0000
28548                                                                  Re: PATCH: anonymous functions in PHPChristian SchneiderThu, 22 Mar 2007 14:26:30 +0000
28551                                                                     Re: PATCH: anonymous functions in PHPMichael WalterThu, 22 Mar 2007 14:54:36 +0000
28553                                                                        Re: PATCH: anonymous functions in PHPChristian SchneiderThu, 22 Mar 2007 15:12:47 +0000
28549                                                               Re: PATCH: anonymous functions in PHPStefan WalkThu, 22 Mar 2007 14:31:56 +0000
28550                                                                  Re: PATCH: anonymous functions in PHPSean CoatesThu, 22 Mar 2007 14:49:15 +0000
28552                                                                     Re: PATCH: anonymous functions in PHPMichael WalterThu, 22 Mar 2007 15:00:32 +0000
28554                                                                     Re: PATCH: anonymous functions in PHPStefan WalkThu, 22 Mar 2007 15:25:32 +0000
28556                                                                     Re: PATCH: anonymous functions in PHPStanislav MalyshevThu, 22 Mar 2007 18:00:26 +0000
28563                                                               Re: PATCH: anonymous functions in PHPRichard LynchFri, 23 Mar 2007 03:43:38 +0000
28568                                                                  Re: PATCH: anonymous functions in PHPbootsFri, 23 Mar 2007 07:59:00 +0000
28580                                                                     Re: PATCH: anonymous functions in PHPJim WilsonFri, 23 Mar 2007 15:18:02 +0000
28581                                                                        Re: PATCH: anonymous functions in PHPJim WilsonFri, 23 Mar 2007 15:18:21 +0000
28590                                                                        Re: PATCH: anonymous functions in PHPPeter HodgeSat, 24 Mar 2007 23:22:20 +0000
28487                                                   Re: PATCH: anonymous functions in PHPAndrei ZmievskiTue, 20 Mar 2007 18:12:09 +0000
28488                                                      Re: PATCH: anonymous functions in PHPStanislav MalyshevTue, 20 Mar 2007 18:20:26 +0000
28489                                                         Re: PATCH: anonymous functions in PHPSean CoatesTue, 20 Mar 2007 18:35:19 +0000
28493                                                            Re: PATCH: anonymous functions in PHPStanislav MalyshevTue, 20 Mar 2007 19:38:12 +0000
28504                                                               Re: PATCH: anonymous functions in PHPSara GolemonTue, 20 Mar 2007 23:59:07 +0000
28506                                                                  Re: PATCH: anonymous functions in PHPStanislav MalyshevWed, 21 Mar 2007 00:24:01 +0000
28510                                                                     Re: PATCH: anonymous functions in PHPSara GolemonWed, 21 Mar 2007 03:07:28 +0000
28490                                                         Re: PATCH: anonymous functions in PHPWez FurlongTue, 20 Mar 2007 18:40:46 +0000
28491                                                            Re: PATCH: anonymous functions in PHPStanislav MalyshevTue, 20 Mar 2007 18:56:32 +0000
28458                                          Re: PATCH: anonymous functions in PHPSean CoatesMon, 19 Mar 2007 21:53:14 +0000
28470                                             Re: PATCH: anonymous functions in PHPRobert CummingsMon, 19 Mar 2007 23:03:15 +0000
28475                                             Re: PATCH: anonymous functions in PHPPeter HodgeTue, 20 Mar 2007 00:15:31 +0000
28443                           Re: PATCH: anonymous functions in PHPWez FurlongMon, 19 Mar 2007 20:41:44 +0000
28446                              Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 21:05:25 +0000
28452                        Re: PATCH: anonymous functions in PHPRichard LynchMon, 19 Mar 2007 21:34:58 +0000
28459                           Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 21:55:00 +0000
28466                              Re: PATCH: anonymous functions in PHPRichard LynchMon, 19 Mar 2007 22:26:25 +0000
28467                                 Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 22:33:31 +0000
28469                                    Re: PATCH: anonymous functions in PHPRichard LynchMon, 19 Mar 2007 22:48:03 +0000
28471                                       Re: PATCH: anonymous functions in PHPChristian SchneiderMon, 19 Mar 2007 23:06:19 +0000
28468                                 Re: PATCH: anonymous functions in PHPSean CoatesMon, 19 Mar 2007 22:35:24 +0000
28480                           Re: PATCH: anonymous functions in PHPChad DaelhousenTue, 20 Mar 2007 13:27:59 +0000
28450                  Re: PATCH: anonymous functions in PHPRichard LynchMon, 19 Mar 2007 21:26:25 +0000
28451                     Re: PATCH: anonymous functions in PHPWez FurlongMon, 19 Mar 2007 21:30:50 +0000
28454                     Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 19 Mar 2007 21:35:50 +0000
28414   Re: PATCH: anonymous functions in PHPDavid ZülkeMon, 19 Mar 2007 08:39:10 +0000
28416   Re: PATCH: anonymous functions in PHPAntony DovgalMon, 19 Mar 2007 09:17:43 +0000
28419   Re: PATCH: anonymous functions in PHPSebastian BergmannMon, 19 Mar 2007 09:34:04 +0000
28439   Re: PATCH: anonymous functions in PHPRichard LynchMon, 19 Mar 2007 20:20:55 +0000
28442      Re: PATCH: anonymous functions in PHPRobert CummingsMon, 19 Mar 2007 20:35:17 +0000
28444         Re: PATCH: anonymous functions in PHPRichard LynchMon, 19 Mar 2007 20:58:57 +0000
28483            Re: PATCH: anonymous functions in PHPDaniel RozsnyoTue, 20 Mar 2007 14:24:32 +0000
28501               Re: PATCH: anonymous functions in PHPDavid ZülkeTue, 20 Mar 2007 22:40:02 +0000
28502                  Re: PATCH: anonymous functions in PHPStanislav MalyshevTue, 20 Mar 2007 22:42:23 +0000
28503                     Re: PATCH: anonymous functions in PHPDavid ZülkeTue, 20 Mar 2007 22:50:02 +0000
28485   Re: PATCH: anonymous functions in PHPAndrei ZmievskiTue, 20 Mar 2007 17:50:34 +0000
34040   Re: PATCH: anonymous functions in PHPtroels knak-nielsenSat, 15 Dec 2007 16:18:48 +0000
34044      Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevSun, 16 Dec 2007 06:57:40 +0000
34045         Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenSun, 16 Dec 2007 11:24:17 +0000
34048            Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevSun, 16 Dec 2007 19:56:22 +0000
34051               Re: Re: PATCH: anonymous functions in PHPLars StrojnyMon, 17 Dec 2007 07:44:03 +0000
34052                  Re: Re: PATCH: anonymous functions in PHPLars StrojnyMon, 17 Dec 2007 07:50:47 +0000
34053               Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinMon, 17 Dec 2007 08:20:34 +0000
34068                  Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 17 Dec 2007 18:16:05 +0000
34054               Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenMon, 17 Dec 2007 08:21:07 +0000
34073               Re: Re: PATCH: anonymous functions in PHPJeff MooreMon, 17 Dec 2007 23:41:52 +0000
34074                  Re: Re: PATCH: anonymous functions in PHPLarry GarfieldTue, 18 Dec 2007 03:30:08 +0000
34075                     Re: Re: PATCH: anonymous functions in PHPJeff MooreTue, 18 Dec 2007 04:44:37 +0000
34077                        Re: Re: PATCH: anonymous functions in PHPLarry GarfieldTue, 18 Dec 2007 05:41:54 +0000
34108                           Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenWed, 19 Dec 2007 21:45:31 +0000
34109                              Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevWed, 19 Dec 2007 22:21:20 +0000
34110                                 Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenWed, 19 Dec 2007 23:28:27 +0000
34112                                    Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevWed, 19 Dec 2007 23:44:53 +0000
34113                                       Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenThu, 20 Dec 2007 00:27:35 +0000
34114                                          Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevThu, 20 Dec 2007 00:51:26 +0000
34115                                             Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenThu, 20 Dec 2007 01:10:00 +0000
34117                                       Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinThu, 20 Dec 2007 06:57:09 +0000
34118                                          Re: Re: PATCH: anonymous functions in PHPAntony DovgalThu, 20 Dec 2007 07:58:05 +0000
34119                                             RE: [PHP-DEV] Re: PATCH: anonymous functions in PHPBaptiste AutinThu, 20 Dec 2007 08:36:31 +0000
34120                                             Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinThu, 20 Dec 2007 08:18:41 +0000
34121                                                Re: Re: PATCH: anonymous functions in PHPAntony DovgalThu, 20 Dec 2007 09:19:57 +0000
34122                                                   Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinThu, 20 Dec 2007 09:41:06 +0000
34127                                                      Re: Re: PATCH: anonymous functions in PHPAntony DovgalThu, 20 Dec 2007 09:57:06 +0000
34125                                                         Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinThu, 20 Dec 2007 10:21:20 +0000
34124                                                   Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenThu, 20 Dec 2007 09:46:08 +0000
34128                                                      Re: Re: PATCH: anonymous functions in PHPAntony DovgalThu, 20 Dec 2007 10:02:49 +0000
34129                                                         Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinThu, 20 Dec 2007 10:38:21 +0000
34130                                                   Re: Re: PATCH: anonymous functions in PHPDavid ZülkeThu, 20 Dec 2007 10:56:12 +0000
34176                                             Re: Re: PATCH: anonymous functions in PHPAndrei ZmievskiThu, 20 Dec 2007 20:02:11 +0000
34123                                          Re: Re: PATCH: anonymous functions in PHPRichard QuadlingThu, 20 Dec 2007 09:43:35 +0000
34156                                             Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevThu, 20 Dec 2007 18:06:41 +0000
34177                                                Re: Re: PATCH: anonymous functions in PHPAndrei ZmievskiThu, 20 Dec 2007 20:09:01 +0000
34143                                          Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevThu, 20 Dec 2007 17:16:55 +0000
34145                                             Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinThu, 20 Dec 2007 17:25:21 +0000
34158                                                Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevThu, 20 Dec 2007 18:12:12 +0000
34151                                             Re: Re: PATCH: anonymous functions in PHPSean CoatesThu, 20 Dec 2007 18:02:01 +0000
34163                                                Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenThu, 20 Dec 2007 19:07:23 +0000
34126                                 Re: Re: PATCH: anonymous functions in PHPMarcus BoergerThu, 20 Dec 2007 10:25:36 +0000
34157                                    Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevThu, 20 Dec 2007 18:09:36 +0000
34216                        PATCH: Implementing closures in PHP (was: anonymous functions in PHP)Christian SeilerSat, 22 Dec 2007 15:08:04 +0000
34217                           Re: PATCH: Implementing closures in PHPGreg BeaverSat, 22 Dec 2007 16:55:11 +0000
34218                              Re: PATCH: Implementing closures in PHPChristian SeilerSat, 22 Dec 2007 17:10:52 +0000
34219                           Re: PATCH: Implementing closures in PHP (was: anonymous functions in PHP)David ZülkeSat, 22 Dec 2007 18:00:07 +0000
34220                              Re: PATCH: Implementing closures in PHP (was: anonymous functions in PHP)troels knak-nielsenSat, 22 Dec 2007 18:47:40 +0000
34227                              Re: PATCH: Implementing closures in PHPChristian SeilerSun, 23 Dec 2007 01:23:57 +0000
34228                                 Re: PATCH: Implementing closures in PHPtroels knak-nielsenSun, 23 Dec 2007 02:24:22 +0000
34231                                    Re: PATCH: Implementing closures in PHPChristian SeilerSun, 23 Dec 2007 11:15:12 +0000
34232                              Re: PATCH: Implementing closures in PHPChristian SeilerSun, 23 Dec 2007 13:40:02 +0000
34233                                 Re: PATCH: Implementing closures in PHPDavid ZülkeSun, 23 Dec 2007 13:57:39 +0000
34238                                 Re: PATCH: Implementing closures in PHPJon PariseMon, 24 Dec 2007 04:04:01 +0000
34239                                    Re: PATCH: Implementing closures in PHPChristian SeilerMon, 24 Dec 2007 15:14:00 +0000
34240                                       Re: PATCH: Implementing closures in PHPJon PariseMon, 24 Dec 2007 20:06:44 +0000
34242                                 Re: PATCH: Implementing closures in PHPXueferTue, 25 Dec 2007 02:07:32 +0000
34222                           Re: PATCH: Implementing closures in PHP (was: anonymous functions in PHP)Martin AlterisioSat, 22 Dec 2007 19:43:40 +0000
34234                           Re: PATCH: Implementing closures in PHP (was: anonymous functions in PHP)Martin AlterisioSun, 23 Dec 2007 20:52:16 +0000
36384                           Re: PATCH: Implementing closures in PHP (was: anonymous functions in PHP)Marcus BoergerSun, 23 Mar 2008 14:41:51 +0000
34046         Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinSun, 16 Dec 2007 14:22:40 +0000
34061            Re: Re: PATCH: anonymous functions in PHPMarcus BoergerMon, 17 Dec 2007 13:09:47 +0000
34064               RE: [PHP-DEV] Re: PATCH: anonymous functions in PHPAndi GutmansMon, 17 Dec 2007 17:09:50 +0000
34067                  Re: Re: PATCH: anonymous functions in PHPSebastian BergmannMon, 17 Dec 2007 17:36:59 +0000
34070                  Re: Re: PATCH: anonymous functions in PHPtroels knak-nielsenMon, 17 Dec 2007 19:37:57 +0000
34072                     Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 17 Dec 2007 19:46:42 +0000
34065               Re: Re: PATCH: anonymous functions in PHPStanislav MalyshevMon, 17 Dec 2007 17:14:22 +0000
34071                  Re: Re: PATCH: anonymous functions in PHPMarcus BoergerMon, 17 Dec 2007 19:45:39 +0000
34127   Re: Re: PATCH: anonymous functions in PHPAntony DovgalThu, 20 Dec 2007 09:57:06 +0000
34125      Re: Re: PATCH: anonymous functions in PHPAlexey ZakhlestinThu, 20 Dec 2007 10:21:20 +0000
34272   Re: PATCH: Implementing closures in PHPRyusuke SEKIYAMAFri, 28 Dec 2007 16:45:03 +0000
34277      Re: Re: PATCH: Implementing closures in PHPXueferSun, 30 Dec 2007 09:45:45 +0000
34305      Re: Re: PATCH: Implementing closures in PHPMarcus BoergerSun, 30 Dec 2007 18:09:49 +0000
34318         Re: Re: PATCH: Implementing closures in PHPRyusuke SEKIYAMAWed, 02 Jan 2008 05:49:26 +0000
34319            Re: Re: PATCH: Implementing closures in PHPStanislav MalyshevWed, 02 Jan 2008 18:51:06 +0000
34527               Re: Re: PATCH: Implementing closures in PHPMarcus BoergerSun, 06 Jan 2008 14:17:48 +0000
«previousphp.internals (#34272)next »

[8]ページ先頭

©2009-2025 Movatter.jp