Monday, August 9, 2010

Why is it bad to use goto?

Programmer Question

I just came across some C# code that had a goto statement in it (which I didn't even know C# supported). I only vaguely remember hearing about goto statements in one of my college classes. I seem to remember my professor saying it should never be used but I don't remember why.



Should I consider rewriting this piece of code or is this unlikely to cause problems?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails