On Sat, Apr 26, 2008 at 2:06 PM, David Zülke <[EMAIL PROTECTED]> wrote:
> Wouldn't the most consistent way be to omit "function" altogether when > using a return type hint? > > public static function zomg() { > return $somethingArbitrary; > } > > public static string foo() { > return $mustBeString; > } > i think leaving 'function' in there makes sense because thats the way php currently works. otoh, should there ever be a type "function" (e.g. for anonymous funcs) down > the road, that'd mean trouble ;) wow; good point! maybe if anonymous functions are ever supported the type could be capitalized as in 'Function' public function Function doStuff() { return function() {} } -nathan