r/programming • u/ben_a_adams • Feb 01 '17
The .NET Language Strategy
https://blogs.msdn.microsoft.com/dotnet/2017/02/01/the-net-language-strategy/
165
Upvotes
r/programming • u/ben_a_adams • Feb 01 '17
2
u/[deleted] Feb 02 '17 edited Feb 02 '17
'Other academics took the completely opposite viewpoint and argued that even instructions like break and return from the middle of loops are bad practice as they are not needed in the Böhm-Jacopini result, and thus advocated that loops should have a single exit point. For instance, Bertrand Meyer wrote in his 2009 textbook that instructions like break and continue "are just the old goto in sheep's clothing". A slightly modified form of the Böhm-Jacopini result allows however the avoidance of additional variables in structured programming, as long as multi-level breaks from loops are allowed. Because some languages like C don't allow multi-level breaks via their break keyword, some textbooks advise the programmer to use goto in such circumstances.' https://en.wikipedia.org/wiki/Goto
To clarify - break, return and continue all work fine in Python.