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

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -