r/visualbasic • u/abovethelinededuct • May 05 '24
GoTo?
As I've been going through my studies I saw that GoTo still exists in VB. Could someone provide a real life use case for it? The one in the book could have been handled by a simple If Else statement.
1
Upvotes
View all comments
Show parent comment
1
u/RJPisscat May 06 '24
You are correct. One can be knee deep and the clearest, best way out is a GoTo.
The nasty attitudes about GoTo are anachronistic to the days of interpreters instead of compilers, and also some new programmers would jump into a For with a Goto.
I know you know this. I'm responding to you and not the other guy because I don't want to talk to them. It's like a religion to many people.