Back to Blog
Foreach continue kotlin6/14/2023 Rao Kosaraju proved in 1973 is that it's not possible to rewrite all programs that have multi-level breaks of depth n into programs with break depth less than n without introducing extra variables. (This paper of Knuth was already recommended above by David Thornley, by the way.) What S. There's a computer science result called the Kosaraju's hierarchy of control structures, which dates back to 1973 and which is mentioned in Knuth's (more) famous paper on gotos from 1974. If Linus Torvalds were in your shoes, he would probably show your boss the middle finger! Your boss basically wants you to program in Pascal's control structures. Pascal (the programming language) was very bad especially for beginner programmers for that reason. But you may have to introduce additional variables and/or code duplication both of which typically make the program harder to understand. Yes you can write programs without break statements (or returns from the middle of loops, which do the same thing).
0 Comments
Read More
Leave a Reply. |