PHP 5 && OO && performance && exceptions
| From: | cron at odi dot com dot br | Date: | Wed, 09 Nov 2005 14:21:51 +0000 |
| Subject: | PHP 5 && OO && performance && exceptions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-225427@lists.php.net to get a copy of this message | ||
Hello,
Currently I'm make some utilities classes and I took the idea from java to make some wrappers
class like String, Integer and so on. This allows me to use the type hint for basic types in php.
Anyone have a clue if replacing the all in one type in php for objects types will degrade the
performance?
Also for every controller class that I'm making I'm also making exceptions class of every
error that it can generate. Same questions: It will degrade performance to throw an exception
instead of lest say a pear error or return false?
Just for know, I'm doing this because I believe that it will eliminate some o problems o
development and will eliminate some basic validations.
Any tips appreciate
Angelo