Skip to Content.
Sympa Menu

freetds - Re: break after return

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: "TDS Development Group" <freetds AT franklin.metalab.unc.edu>
  • Cc: Frediano.Ziglio AT vodafoneomnitel.it
  • Subject: Re: break after return
  • Date: Mon, 5 Aug 2002 19:25:44 -0400


On Mon, 5 Aug 2002 14:48:19 +0200 , ZIGLIO Frediano
<Frediano.Ziglio AT vodafoneomnitel.it> wrote:

> I noted in many source code like
>
> case XXXX:
> ....
> return xx;
> break;
>
> Why the need of break after return?

Many people think that's good form. If the code is adjusted and the
return is removed, the programmer might not notice that "break" just
became necessary. That can be a hard bug to find by simple inspection.

--jkl



  • break after return, ZIGLIO Frediano, 08/05/2002
    • <Possible follow-up(s)>
    • Re: break after return, James K. Lowden, 08/05/2002

Archive powered by MHonArc 2.6.24.

Top of Page