4 ms·
> I've been programming for around 20 years now Me too. > I've very, very rarely seen goto statements used I saw them used all the time in Basic =) > You do
by maratd 14y ago
> I've been programming for around 20 years now
Me too.
> I've very, very rarely seen goto statements used
I saw them used all the time in Basic =)
> You don't need goto to create code that jumps around
Nope. All you need is a loop, with lots of continue/break statements mixed in. I have seen this quite a bit and I start twitching when I see it. That's the modern equivalent of the goto.
- ezesolares 14y agoI liked gosub :D
- vonmoltke 14y agoEven worse when the code uses labelled breaks and continues.