Re: Introspect whether setCharacterEncoding is present..
Endre Stølsvik <[email protected]> Tue, 12 Oct 2004 17:00:49 +0200 (CEST)
| Newsgroups | gmane.comp.java.advanced-servlets |
|---|---|
| Message-ID | <Pine.LNX.4.44.0410121657510.26253-100000@excalibur.intra.coretrek.com> |
| | - there is a computation cost to throwing them | Though exceptions are often highly optimized, depsite what some people | in that google search seem to think. This is because most VMs are | written in C and an exception can be implemented as a | longjmp. Certainly, unix longjmp's are very fast. longjump or not - that's NOT the question! They have to be allocated, and -filled in-. That is the problem. Not the control flow as such. | | - there is no other non-local exit feature | Unlike in C++ which still has longjmp left over from C. Use booleans and ifs. Unless it is in a non-critical path, then do whatever you like. However, in a non-critical path, one may write how bad code one desires, as it'll execute very seldom. | | | So what is it about the above that means that exceptions should not be | used for control flow? The time it takes to =make the Exception=, which wasn't mentioned in your list! | | Is it just because someone decided that exceptions should not be used | for control flow? Because if that's the case you can carry on writing | programs your way and I'll write good ones /8-> Haha! Endre ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Before posting a question, try to find your answer here: <http://www.egroups.com/links/advanced-servlets> Announcements should go to: [email protected] To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: [email protected] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/advanced-servlets/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/