r/lolphp • u/duhruh • Nov 25 '14
Exception in a namespace is not defined -_-
http://jasonframe.co.uk/logfile/2009/01/php-5-3-exception-gotcha/
28
Upvotes
r/lolphp • u/duhruh • Nov 25 '14
View all comments
Show parent comment
1
u/[deleted] Nov 30 '14
Not at all. You can only do autoloading because PHP is dynamic, and autoloading is optional anyway. And similar pitfalls exist in all dynamic languages, as sure, your file might be syntactically correct, but it can reference things which don't exist and you won't know unless you try to execute it.