curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Tests 1060, 1061 fail

From: dev_user <dev_at_cor0.com>
Date: Sun, 8 Jan 2017 20:46:40 +0000

On 01/08/2017 05:38 PM, Spork Schivago wrote:
> Daniel,
>
> I'm sorry for butting in here, but is there no easy to way to write the
> code without using the goto statements? I seem to remember using
> goto's was frowned upon by some programmers back in the day, at least
> with the C programming language. I don't mean any offense by this and
> you probably know the code best. If goto's are the only way, I
> understand. I was just curious if there was another way.

You may be going all the way back to the days of Pascal wherein, yes, a
goto was not only frowned upon but considered very poor code. However if
a "goto" a label sorts out a simple problem without the creation of some
nasty spagetti then no, it isn't a big issue. Overuse of anything is.

Dennis

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-01-08