RE: [PHP-DEV] Syntactic improvement to array

From: Date: Sun, 04 Feb 2007 16:17:03 +0000
Subject: RE: [PHP-DEV] Syntactic improvement to array
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-27745@lists.php.net to get a copy of this message
Yep. I should have finished reading my messages first :) > -----Original Message----- > From: Pierre [mailto:pierre.php@gmail.com] > Sent: Sunday, February 04, 2007 7:24 AM > To: Hannes Magnusson > Cc: Andi Gutmans; internals@lists.php.net > Subject: Re: [PHP-DEV] Syntactic improvement to array > > On 2/4/07, Hannes Magnusson <hannes.magnusson@gmail.com> wrote: > > Hi Andi > > > > function typeHinted([] $array = []) { // type hint array, > default to > > empty one > > That's a wrong example. > > Type hinting should still rely on the literal name: > > function typeHinted(Array $myarray=[]) > > --Pierre >

« previous php.internals (#27745) next »