- I was wondering: can infinite loops be done in functional programming?
example: when using the windows API to get windows messages, it is usually implemented in a loop.
I know it is possible to make a function that will keep going into recursion indefinitely. I expect that this will result in a stack overflow.
are infinite loop the wrong mind-set for functional programming ?
is the interface of the operating system or the hardware the problem ?
it doesn't seem to me like a functional program/o.s. could keep running by itself
I have a tiny bit of experience writing functional programs but this has always bothered me. please share your thoughts/insights about these issues