ios - What is the reason for some people use GOTO statement in objetive C? -


i have not experience in objectivec (ios) development i've seen many codes curiosity , found people using goto statement (jsonkit library, code games, etc), apple's source code known use (you can see here).

as have learned in academic life, using goto bad development pratice , must avoid, why "commom" pratice in ios development, there special reason??

it programming style use break, continue, , return statements instead of goto statement whenever possible. however, because break statement exits 1 level of loop, might have use goto statement exit nested loop.

*source - microsoft

one more example blog


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -