|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-06-19 15:10 UTC] Mike dot Eggleston at michaelsmacshack dot com
Ok Folks. I am really happy with PHP thus far. However to make it a true Object Oriented Language you absolutly need Dynamic binding. This would be such a huge boon for us developers who love to work within classes. Such as:
// Inside the class Circle
function DrawMe() {
// Getting Ceter Coords..
DrawMe($centX, $centY);
}
function DrawMe($x, $y) {
// Draws the circle at $x, $y
}
// End of code demo
This kind of ability can be extremely huge, if you use it right. Also, it allows for developers to make a module extremely flexiable and powerful.
Secondly, I think that we are missing public and private sections of the OOP world. In the above example, I would have the functions public, and the data structures inside of it totally hidden (or private) so the programmer who is using my include just has to deal with the interface, and can't touch the actual data. That is strength and beauty of encapsulation.
I just thought you may want to hear this, and I am hoping to hear from you guys (and gals) that you are hard at work to implement it and it is coming soon.
Thanks for reading my rant!!
Mike Eggleston
AmeriGroup
Mike.Eggleston@michaelsmacshack.com
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 08:00:01 2025 UTC |
function drawMe() { if( 2 == func_num_args() ) { doStuff( func_get_arg(0) , func_get_arg(1) ) ; } else { doStuff( $defaultX , $defaultY ) ; } } private vars/methods would be good... :)