Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

George Schlossnagle's Blog:
Cloning Objects by Default? (from Alan Knowles)
Oct 28, 2005 @ 10:55:45

George Schlossnagle has this post pointing to this post on Alan Knowles' blog about PHP4's object model.

The crufty but usually sound Alan Knowles seems to have gone completely crazy:

While PHP4's object model may be regarded as a pain, defaulting to cloning objects is actually rather handy in 9 out of 10 situations.

George notes that trying to clone an object by default is not quite the best idea and is unintuitive for most programming out there...

tagged:

Link:


Trending Topics: