[fpc-pascal] The reason why linus torvalds hate-pascal

Zaher Dirkey parmaja at gmail.com
Mon Apr 21 00:54:03 CEST 2008


I am not like break(x) it also make improvement my procedure was
sensitive, i must count how many loop i have in, and i must care if i
added a new loop around the code that looped (hmm bad english).


On Sun, Apr 20, 2008 at 7:21 PM, Andreas Berger
<Andreas at thebergerclan.org> wrote:
>
>
> >
> > C provides the infinitely-abusable goto statement, and labels to branch
> to. Formally the goto is never necessary and in practice it is almost always
> easy to write code without it. We have not used goto in this book.
> > Nonetheless , we will suggest a few situations where goto's may find a
> place. The most common use is to abandon processing in some deeply nested
> structure, such as breaking out of two loops at once. The break statement
> cannot be used directly since it leaves only the innermost loop....
> > .....
> > Although we are not dogmatic about a matter, it does seem that goto
> statements should be used sparingly, if at all.
> >
> >
>  I agree, the goto should only be used to IMPROVE code readability.
>
>  About break. I would like to see an implementation of Break(x) where x is
> the number of loops to break out of.
>  Correction: I would not like this, I would LOVE it.
>
>  Andreas
>
>
>
>  _______________________________________________
>  fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>  http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



-- 
Zaher Dirkey



More information about the fpc-pascal mailing list