4 ms·
>Functional programming is what happens to the universe when you eliminate the concept of Time. I've heard this a lot but still can't find a good code example
by akhilcacharya 9y ago
>Functional programming is what happens to the universe when you eliminate the concept of Time.
I've heard this a lot but still can't find a good code example to illustrate this. Any help?
- haskellandchill 9y agoThe statement makes no sense. See FRP for a take on how to handle time-varying behavior.
- crimsonalucard 9y agoIt does make sense. Man of course whenever the functional paradigm switches to IO things change. The functional program needs to have an exception somewhere or nothing gets done. I'm talking about the functional part of functional programming, not how the IO monad is implemented.
- crimsonalucard 9y agoLet me make my statement clearer. The FRP loop has a part that is not pure (IO). This is where time enters the picture. FRP is not 100% functional, no functional programming language is... but if you look at the functional part of a functional programming language you will see that it is immutable.
- crimsonalucard 9y agoImmutability is equivalent of eliminating time. To be unchanging is to be timeless.