On Tue, Sep 28, 2004 at 04:22:51PM -0600, Michael L Torrie wrote: > On Tue, 2004-09-28 at 15:37 -0500, Michael Halcrow wrote: > > All this is really messing with my mind. I'm starting to throw > > exceptions just to terminate loops out of habit now (hence the > > term ``impure''). But I like it. Almost as much as goto's in C. > > Isn't this idea of throwing exceptions to get out of loops one of > the things that Java is derided for?
Let's be comparing apples to apples. Remember that Java is
imperative, which entails a concept of ``execute this intruction, then
execute that instruction.'' In that language style, using exceptions
to break out of loops is probably not a good idea.
Mike
.___________________________________________________________________.
Michael A. Halcrow
Security Software Engineer, IBM Linux Technology Center
GnuPG Fingerprint: 05B5 08A8 713A 64C1 D35D 2371 2D3C FDDA 3EB6 601D
If this is flashing then you're a winner!
pgptEYLe2SGLp.pgp
Description: PGP signature
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
