Programing Language Design. Loop and Iteration. (2025)
For Coders. on Programing Language Design. Loop and Iteration.
- It would be a good exercise, if you look into each of these functions, and try to implement it in python or your fav language.
- You'll learn a lot.
- (all these, can be done with loop or nested loop with states.)
you'll learn:
- The concept of these functions, and get a sense all possible things one might want to do with a list or array.
- The design of language for a given algorithm. E.g. To generated nested rectangular array, python has list comprehension. Wolfram lang is just a function Table.
- Can you specify, exactly, how they differ?
- Can you specify, what are the pros and cons of each design?
- Can you say, which is easier to implement?
- Can you say, which is easier to understand?
- Can you say, which is easier to use, or type?
- e.g. for recursion, Wolfram language has a Nest, that allow recursion of any function.
- this in my view, is much simpler, more powerful, than function def that call itself.
- If you try to implement them all, that makes a great exercise.
- Instead of code golf or leet code or advent of code or whatever current fashion.