in reply to Re: If I was forced to use only one kind of loop for the rest of my days it would be a
in thread If I was forced to use only one kind of loop for the rest of my days it would be a
However, the rest of my life is just too longSomeone has better statistics of heart problems among their relatives than I have... :-)
wouldn't choose foreach as the single looping construct, as I've learnt that it wouldn't give me a Turing-complete language.A language with 'if' statements, blocks and foreach should be Turing complete? Write a state engine with if conditions -- put inside an infinitely looping foreach. (-: To get that foreach, lazy eval would be a feature, of course. :-)
To chose goto and learn source filtering to get everything else is cheating, I guess.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: If I was forced to use only one kind of loop for the rest of my days it would be a
by ambrus (Abbot) on Sep 30, 2005 at 06:20 UTC | |
by BerntB (Deacon) on Sep 30, 2005 at 17:20 UTC | |
by Anonymous Monk on Sep 30, 2005 at 15:28 UTC | |
by ambrus (Abbot) on Sep 30, 2005 at 15:59 UTC |