[PEPr] Comment on Tools and Utilities::VarManager

From: Date: Thu, 25 Aug 2005 16:21:35 +0000
Subject: [PEPr] Comment on Tools and Utilities::VarManager
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39561@lists.php.net to get a copy of this message
Ian Eure (http://pear.php.net/user/ieure) has commented on the proposal for Tools and Utilities::VarManager. Comment: I really fail to see the usefulness of this. -- quote -- if($vars->var_exists("firstname")) { echo "<h4>Welcome back ".$vars->var_val("firstname").".</h4>"; } else { echo "<h4>I don't know your name, but lets talk about VarManager.</h4>"; } -- quote -- How is this better than: if(isset($_GET["firstname"]) { echo "<h4>Welcome back ".$_GET["firstname"].".</h4>"; } else { echo "<h4>I don't know your name, but lets talk about VarManager.</h4>"; } The VarManager way is more code, more overhead, and I see no functional difference. The "default link" stuff is the same as using $_SERVER['REQUEST_URI']. I think that most, if not all, of what VarManager does already happens internally in PHP, or with Net_URL. I fail to see the value of this package. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=291 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

« previous php.pear.dev (#39561) next »