Re: Type hinting

From: Date: Thu, 27 May 2010 09:07:51 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-48499@lists.php.net to get a copy of this message
On Thu, May 27, 2010 at 11:05, 魏世江 <shijiang@staff.sina.com.cn> wrote: > Hi . > I think there is no need to argue on it  any more. > Good programmers have the ability to manipulate the variables' types. > But I think it's the icing on the cake if we give the PHP programmer the choice of whether > use explicit types. > For examlpe, we may add a switch in php.ini, let's say, explict_types=On/Off. A php.ini setting is a really bad idea. Say that Library A expects it to be On, but Library B expects it to be Off. Now what happens if I want to use *both* Library A and Library B? -- Daniel Egeberg

« previous php.internals (#48499) next »