RE: [PHP4BETA] A quick clarification question about PHP4...

From: Date: Wed, 25 Aug 1999 10:25:36 +0000
Subject: RE: [PHP4BETA] A quick clarification question about PHP4...
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3707@lists.php.net to get a copy of this message
> -----Original Message----- > From: Zeev Suraski [mailto:zeev@zend.com] > Sent: 24 August 1999 09:43 PM > To: Samuel Liddicott; Jim Brain; Andi Gutmans; Zend > Subject: RE: [PHP4BETA] A quick clarification question about PHP4... > > I think it isn't at all, on the contrary. As a matter of fact, > if there's > one thing I'm truly sorry for, it's introducing the 'var' construct. It > was introduced in PHP 3.0 before we had the ability to implement > constructors - otherwise we wouldn't have that thing at all in the > language. Mind you, you don't have to declare it at all, you can just > initialize it in the constructor. The 'var' construct pretty much goes > against the nature of PHP by explicitly declaring variables before using > them, and should be obsolete and replaced by constructors: Wow. I use it as self-documentation otherwise I can never remember the names of variables and end up with buggy code because I have two different spellings. Oh well. > It's not the C++ model, it's a typical compile&execute model. Well it's not very nice... Also I move that constructors allow parameters. Sam

« previous php.version4 (#3707) next »