RE: [PHP-DEV] [DRAFT] [RFC] Function autoloading

From: Date: Sun, 01 Sep 2013 09:38:49 +0000
Subject: RE: [PHP-DEV] [DRAFT] [RFC] Function autoloading
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-68813@lists.php.net to get a copy of this message
> -----Original Message----- > From: Sebastian Krebs [mailto:krebs.seb@gmail.com] > Sent: Friday, August 30, 2013 9:02 PM > To: Stas Malyshev > Cc: Sara Golemon; Anthony Ferrara; internals@lists.php.net > Subject: Re: [PHP-DEV] [DRAFT] [RFC] Function autoloading > > 2013/8/30 Stas Malyshev <smalyshev@sugarcrm.com> > > > Hi! > > > > > Well, static methods aren't the same as functions. > > > > The big difference being? > > > > A function is stateless [1], a method isn't. A function operates only on the > passed parameters [1], the method operates on the parameters and the > context it inherits from the instance (non-static), or class (static and non- > static). Static methods are equally stateless as global functions. A class state (static members) is no different from global variables (except for a tiny bit of lipstick in the form of encapsulation). There's no argument methods are different from global functions, not so with static methods which are essentially the same as global functions. Zeev

« previous php.internals (#68813) next »