Re: Q on Primitives

From: Date: Thu, 18 Dec 2008 22:11:52 +0000
Subject: Re: Q on Primitives
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-42338@lists.php.net to get a copy of this message
Cristian Rodríguez wrote: >> class MyTestClass { >> public function blah(Foo $f); >> public function blah(Bar $b); >> public function blah($v); >> } >> > > Looks like you are using the wrong language, you need JAVA instead. > Yes, I'll admit it does look like Java (or any C++-like OO language) - but PHP already does some type hinting, and IMO it can be very useful as an additional sanity check. Dave

« previous php.internals (#42338) next »