KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If functional programming languages cannot save any state, how do they do simple stuff like reading input from a user? How do they "store" the input (or store any data for that matter?) For example: how would this simple C thing translate to a functional programming language like Haskell? #include<stdio.h> int main() { int no; scanf("%d",&no); return 0; } (My question was inspired by this excellent post: "Execution in the Kingdom of Nouns" . Reading it gave me 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.)
Tags (comma-separated)
Save Edits
Cancel