Original Post
🔒 Locked
goto command
Advertisement
Quote:
Original post by ace_lovegrove
basic and C do.
Although maybe you should be asking yourself why you need to use goto.
ace
Because I'm an amateur programmer.
I know about C, C++, C# ... supports goto, but I didn't know that none of those hundereds scripting languages supports it
Quote:
Original post by BOOGIEMAN Quote:
Original post by ace_lovegrove
basic and C do.
Although maybe you should be asking yourself why you need to use goto.
ace
Because I'm an amateur programmer.
lol, then you definitely shouldnt be using it...
Its actually an interesting question though. It just dawned on me that iv no idea, since iv never had to use a goto before in my life (except some error handling in C)
Quote:
Original post by BOOGIEMAN
Because I'm an amateur programmer.
That's not a reason to use goto statements.
Quote:
I know about C, C++, C# ... supports goto, but I didn't know that none of those hundereds scripting languages supports it
Most people will tell you a goto is rarely useful. The only place I can remember seeing gotos is Visual Basic error handling code, and it was basically a hack to make up for VB's lack of exceptions (although this may have changed in newer versions).
You can probably do the same thing you want with gotos by using some other language feature.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement