3 ms·
I answered for a sub space of all the possible problems that can be solved with LOOP and EXIT which lend themselves to a much better structured approach. Also,
by bhaak 7y ago
I answered for a sub space of all the possible problems that can be solved with LOOP and EXIT which lend themselves to a much better structured approach.
Also, you were jumping to FOR loops over arrays. But instead the sentinel values are much better suited for linked lists.
What a programming language allows shapes how you program in it. The Sapir-Whorf Hypothesis is probably much more true with programming languages than natural languages.
One of Wirth's mantras is "don't show me your code, show me your data structures and I'll immediately know if your code is any good".
There are certainly moments when I would like to have certain programming constructs. But then I have to solve the problem in another way.
But this happens in a lot of languages. Be it C, Ruby, Javascript, or Oberon (whatever version).