12-19-2005, 10:32 AM
I had the most bizarre idea the other day...
What if you made a program's main loop a recursive function? If you did, then you wouldn't have to worry about loop structures or anything of the sort.
Of course, there's probably quite a few problems with this (I tried it in FB with SUBs, and it crashed after a few seconds- probably some stack thing), but think about how much simpler main loops would be if we used recursive functions for them!
Just a thought.
What if you made a program's main loop a recursive function? If you did, then you wouldn't have to worry about loop structures or anything of the sort.
Of course, there's probably quite a few problems with this (I tried it in FB with SUBs, and it crashed after a few seconds- probably some stack thing), but think about how much simpler main loops would be if we used recursive functions for them!
Just a thought.
.14159265358979323846264338327950288419716939937510582709445
Glarplesnarkleflibbertygibbertygarbethparkentalelelangathaffendoinkadonkeydingdonkaspamahedron.
Glarplesnarkleflibbertygibbertygarbethparkentalelelangathaffendoinkadonkeydingdonkaspamahedron.