![]() |
|
more useful options | |
PerlMonks |
Re: Tutorial: Introduction to Object-Oriented Programmingby gjb (Vicar) |
on Dec 10, 2002 at 15:58 UTC ( #218813=note: print w/replies, xml ) | Need Help?? |
I don't agree with this statement: die in an class/object method can be viewed as throwing an exception which can be caught by an eval {...}; block. It is the responsibility of the programmer using the class to catch the exceptions. This is the way things work in Java and I rather appreciate it. On the other hand, die is not sufficiently expressive to do the job, so if your intention is to point people to using the Exception or the Class::Exception modules, I couldn't agree more. Or it could be that I completely miss your point... Just my 2 cents, -gjb-
In Section
Meditations
|
|