Re: foreach

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu