php-general | 2001092
Date: 09/27/01
- Next message: Chris Aitken: "[PHP] Optimizing a Table with PHP"
- Previous message: * R&zE:: "Re: [PHP] Variable declaration"
- In reply to: * R&zE:: "Re: [PHP] Variable declaration"
- Next in thread: Manuel Carrara: "Re[2]: [PHP] Variable declaration"
- Reply: Manuel Carrara: "Re[2]: [PHP] Variable declaration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > its really a big headache with compilers like c bugging all the way just for declarations.
One remark, btw. Using explicit declarations isn't really more of a
<quote>headache</quote> then _not_ using expl.decl. When you don't
use explicit declarations, you'll need to check wether or not a
variable is defined at (almost) any point where you want to use it.
But... like I said; it's more a matter of preference.
Only thing is that when I look at quite a lot of people who post on
this mailinglist, I think it shouldn't be such a bad idea to force
them into coding a bit stricter. Many people just start using
variables "because they'll probably already been defined". That's
not something you can depend on. Same with people who think they can
just use variables that have been posted from a form. No need to
check them for being defined?!? I think you should. You cannot
depend on user-inputs. And there's always a possibility of people
bookmarking specific pages or typing URL's themselves. You'll always
need to check variable before you use them.
Explicit declaration at least address a part of this problem. It
forced people to code a bit stricter.
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze <email protected> -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Chris Aitken: "[PHP] Optimizing a Table with PHP"
- Previous message: * R&zE:: "Re: [PHP] Variable declaration"
- In reply to: * R&zE:: "Re: [PHP] Variable declaration"
- Next in thread: Manuel Carrara: "Re[2]: [PHP] Variable declaration"
- Reply: Manuel Carrara: "Re[2]: [PHP] Variable declaration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

