Submitted by Dacadey t3_z89cro in explainlikeimfive
Sloloem t1_iyefdj8 wrote
Reply to comment by Symbian_Curator in ELI5: why is using "goto" considered to be a bad practice in programming? by Dacadey
Some languages also kindof have you using GOTOs and labels for exception handling...I wanna say Visual Basic? I did a project a few years ago using CrownPeak CMS which at the time I think used VB for its templating language and I vaguely recall winding up with a lot of really snotty "ON ERROR GOTO HELL" clauses. I think some legacy data applications that had a lot of functionality written in SQL procedures used that sort of error handling instead of more modern try-catch-finally or try-with-resources blocks. It's all true but I don't think I'm inaccurate in saying they're pretty niche edge cases for most programmers.
Symbian_Curator t1_iyefzmc wrote
At this point, Visual Basic itself is a niche edge case :D
Sloloem t1_iyehs4b wrote
And we're all the better for it being that way.
Symbian_Curator t1_iyeknbb wrote
Since I'm too young to have used VB, I'll take your word for it
Viewing a single comment thread. View all comments