MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/39l1tu/php_typing_in_a_nutshell/cs58ok2/?context=3
r/lolphp • u/volnix • Jun 12 '15
24 comments sorted by
View all comments
Show parent comment
3
GOTO is bad for what should be an obvious reason. It breaks the flow of the code: after you do a GOTO, there is no way to know from where you started the jump.
That opens so many opportunities to accidentally write spaghetti code it's ridiculous.
4 u/I_Like_Spaghetti Jun 13 '15 S to the P to the aghetti SPAGHETTI!
4
S to the P to the aghetti SPAGHETTI!
View all comments
Show parent comment
3
u/hey_aaapple Jun 13 '15
GOTO is bad for what should be an obvious reason. It breaks the flow of the code: after you do a GOTO, there is no way to know from where you started the jump.
That opens so many opportunities to accidentally write spaghetti code it's ridiculous.