Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

How do functional programming languages work?

11 like 0 dislike
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;
}
asked 2 years ago by biswaskeran (70,430 points)

Your answer

Email me at this address if my answer is selected or commented on:
Privacy: Your email address will only be used for sending these notifications.

0 Answers

Related questions

12 like 0 dislike
1 answer
12 like 0 dislike
2 answers
13 like 0 dislike
1 answer
9 like 0 dislike
3 answers
11 like 1 dislike
2 answers