Search code examples
python-3.5goto

Why is 'goto' seen as bad form?


I would find it very useful in Python, and am curious as to why Python doesn't have it. Thanks!


Solution

  • Normally goto is explicitly used to make error handling more simple and code more readable by languages like C. Python has try and except for this, so that makes the goto statement unnecessary.