[Coco] C VS Basic Coco
William Astle
lost at l-w.ca
Wed Feb 14 13:42:12 EST 2018
Naturally, I would write something with a weird implication. The kicker
is that if I had intended to make that implication, I would have failed
spectacularly. :)
On 2018-02-14 10:41 AM, Lee wrote:
> William, are you implying that babies are not strictly required, but
> sometimes useful? :P Sorry, couldn't resist. :)
>
> On Wed, Feb 14, 2018 at 12:29 PM, William Astle <lost at l-w.ca> wrote:
>
>> On 2018-02-14 10:06 AM, Bill Gunshannon wrote:
>>
>>> Ask Dykstra. Or just look at the decades of research into why GOTOs are
>>> bad.
>>> In one of my last professional programming gigs I took more than a dozen
>>> programs heavily laced with GOTOs (true spaghetti code!!) and using proper
>>> structured programming removed all of them. While I am not one who
>>> heavily
>>> favors standards bodies I think when they decided to come up with a BASIC
>>> standard it should have deprecated the GOTO entirely.
>>>
>>
>> Unrestrained use of GOTO is definitely bad. Especially when you have
>> better alternative control structures (FOR, WHILE, etc.) and proper
>> blocking that hide underlying GOTO business.
>>
>> However, there are some cases where it can serve to make the code flow
>> clearer.
>>
>> Note that I'm not advocating for the use of GOTO everywhere. I'm simply
>> saying that getting rid of it entirely is a bit like throwing the baby out
>> with the bath water. Is it strictly required? No. Is it useful sometimes?
>> Yes.
>>
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>>
>
>
>
More information about the Coco
mailing list