Re: foreach
- Posted by DerekParnell (admin) Jul 25, 2008
- 1057 views
CChris said...
foreach s[index] do -- whatever end foreach --<-- when do we get rid of that redundancy?
The redundancy is only in the eyes of the interpreter. It doesn't need it. But the end XXX serves another purpose. Source code is actually meant for people to read, not programs to read, and people are not as efficient at symbol processing, so we need a certain amount of redundancy to help us understand what we are reading.
Our spoken (and written) language has many examples of redundancy, but they are useful.
Euphoria source code is for us to read, so whatever it can do to help us in that is a good thing.