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 ofgoto
statement whenever possible. however, becausebreak
statement exits 1 level of loop, might have usegoto
statement exit nested loop.
*source - microsoft
one more example blog
Comments
Post a Comment