Re: Variable declaration

From: Date: Thu, 27 Sep 2001 12:33:44 +0000
Subject: Re: Variable declaration
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-68995@lists.php.net to get a copy of this message
<Original message> From: sagar N Chand <sagarphp@yahoo.com> Date: Thu, Sep 27, 2001 at 06:01:26PM +0530 Message-ID: <005101c14750$c3189b10$0101a8c0@inferno> Subject: Re: [PHP] Variable declaration > its really a big headache with compilers like c bugging all the way just for declarations. > its cooool to have the freedom of using any variable at any place wherever v want in bet > ween the code. chao of PHP. > > /sagar </Original message> <Reply> I think it's just a matter of preference. I like this, you like that. No harm to that. That's why I proposed the E_EXPLICIT_DECLARATION. That way I can choose to use it, and you can leave it for what it is. Kinda like what Perl does with "use strict;". If you don't like being forced to declare every variable before you use it, you just don't type "use strict;" at the start of your script. People like me, who do like to do that, _do_ use that option. Everyone gets it his/her way and it bothers noone. But anyway... I don't think they'll ever implement this, so (...) NOTE: PHP Rulz and this is just a small thing that doesn't change anything to the superb power of PHP webbuilding! :) </Reply> -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#68995) next »