[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: why goto ?

Only abusive Java code would ever use the
try-catch-finally clauses as a control structure. Well
behaving java code uses those statements only as a
mechanism for error handling.

rajeev j sebastian
acid solutions
--- Arun Sharma <arun@xxxxxxxxxxxxxxx> wrote:
> On Fri, Mar 09, 2001 at 02:28:53PM +0530,
> Harishankkar wrote:
> > Hi Anurag,
> > Goto is mainly used in functions where having
> multiple return points is not
> > possible.
> This is a valid use of goto, but should be replaced
> by having a "name" for
> it, so that it can be distinguished from a
> completely abusive use of goto,
> so that compilers can continue to do optimizations
> in the presence of gotos.
> In java, the "name" is try-catch-finally.
> 	-Arun
> ---------------------------------------------
> LIP is all for free speech.  But it was created
> for a purpose.  Violations of the rules of
> this list will result in stern action.

Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.