Re: Return Type Hinting for Methods RFC

From: Date: Thu, 22 Dec 2011 14:51:59 +0000
Subject: Re: Return Type Hinting for Methods RFC
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-56997@lists.php.net to get a copy of this message
On Thu, Dec 22, 2011 at 03:33:40PM +0100, Sebastian Krebs wrote: > > private \ArrayObject $customers; > > > > Once more "Why is PHP not Java?" That comment confuses matters. People use PHP for all sorts of reasons, the desire to tighten up in some places, on some occasions, should not be treated with derision. Tighter declarations, or any declarations at all, would not be mandatory. It would be something that some projects might want to do. It would be nice if this could be done on a module but module basis ... eg the implementors of a class library might want to be really strict while allowing the class users to not be strict. Just because Java has a feature that you appear to not like, does not mean that others might not want it in some circumstances. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include <std_disclaimer.h>

« previous php.internals (#56997) next »