in reply to Re^8: Runtime introspection: What good is it?
in thread Runtime introspection: What good is it?
Opening files in Perl is different for a fairly important reason. If you're opening files you need to test the open and throw an exception because otherwise there is no exception to be caught and handled on the top level. In languages which automatically throw exceptions on failures to open files (eg Ruby) that code can go away.
If you're programming in Java then you have no choice but to note the existence of exceptions everywhere. It is my firm opinion that this is a design mistake in Java that encourages poor coding techniques.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Runtime introspection: What good is it?
by BrowserUk (Patriarch) on Jul 15, 2008 at 00:28 UTC | |
by tilly (Archbishop) on Jul 15, 2008 at 00:35 UTC | |
by BrowserUk (Patriarch) on Jul 15, 2008 at 01:04 UTC |