|
-
Sep 29th, 2009, 09:41 AM
#25
Re: [RESOLVED] What is wrong with GoTo
It's all a matter of degree - GoTo is at one extreme, but note that there are many "slightly sanitized goto's":
Continue For
Continue Do
Continue While
Exit For
Exit Do
Exit While
Exit Select
Return / Exit Sub / Exit Function
Someone expressed surprise at goto being in code generated by reflector for C#, but 'goto' is valid (although not recommended) C# syntax. Note that most languages have 'goto' - the only popular programming language that omits it is Java (it just has the sanitized versions: continue, break, and return).
Last edited by David Anton; Sep 29th, 2009 at 10:10 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|