+ 12

Goto statement....??

why python don't have goto statement like C language ?

5th Jun 2018, 4:11 PM
Shruti Singh
Shruti Singh - avatar
6 Réponses
7th Jun 2018, 7:16 AM
Nikolay Nachev
Nikolay Nachev - avatar
+ 14
When C was designed, there were some valid reasons to use goto statements because compiler optimizations didn't exist. However, using goto without a really strong need was massively frowned upon. There is never a need for goto statements these days so Python was designed without it. If legacy code with goto statements weren't still in use, it is likely the goto would be removed from all languages that support it.
5th Jun 2018, 4:32 PM
John Wells
John Wells - avatar
+ 11
thanks john ..for your opinion...it really helped 😀
5th Jun 2018, 6:04 PM
Shruti Singh
Shruti Singh - avatar
+ 2
because goto is pretty useless and should never be used
5th Jun 2018, 4:19 PM
Max
Max - avatar
+ 1
hii can you make the application for me
7th Jun 2018, 7:49 AM
Sudhanshu Maurya
Sudhanshu Maurya - avatar
0
get away
7th Jun 2018, 4:58 PM
Cooper Ross
Cooper Ross - avatar