How do functional programming languages work?
- by eSKay
I was just reading this excellent post, and got some better understanding of what exactly object oriented programming is, how Java implements it in one extreme manner, and how functional programming languages are a contrast.
What I was thinking is this: if
functional programming languages
cannot save any state, how do they do
some simple stuff like reading input
from a user (I mean how do they
"store" it), or storing any data for
that matter?
For example - how would this simple C thing translate to any functional programming language, for example haskell?
#include<stdio.h>
int main() {
int no;
scanf("%d",&no);
return 0;
}