Re: New keyword added: continue
- Posted by gshingles <gshingles at gmai?.c?m> May 27, 2008
- 796 views
ken mortenson wrote: > > I guaranty the soon nobody would miss, while, for, for each, repeat until, > do while, do until, rinse, lather, soap... oops! Got ahead of myself on > those last few. Maybe I'm just lazy, but I really miss foreach in Euphoria, especially since it has native sequences. I suspect sequence operations make it fairly redundant though. If all the work is being done by the interpreter then I would rather write something that looks like English, so I like having while and for. It's more natural to think (in my view) "count to 10 and for each number do something with it" (for..end for) than to think "LOOP,ADD,DO,TEST,END" (loop..loop end) or "while I haven't found it get the next one and have a look". (while) I'm actually really starting to admire Python. You say what you mean and don't have to dress everything up again to carry on with your code. I often sit there thinking "Is that it?" when I've iterated over an array in three lines of code and don't have to type '}' or 'end for' or count brackets etc Anyway, whatever language Euphoria uses I'm sure we'll all get used to it. It's all the same as far as the CPU is concerned :) Gary