3 ms·
Sure you need to use the IO monad to write "hello world" but you don't need to understand what it does in the background. #include <stdio.h> int main(int a
by pwm 7y ago
Sure you need to use the IO monad to write "hello world" but you don't need to understand what it does in the background.
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("Hello World!\n");
return 0;
}
class HelloWorld {
static public void main(String args[]) {
System.out.println("Hello World!");
}
}
main :: IO ()
main = print "hello world"
Hello worlds in C, Java and Haskell. I can write them and run them without needing to fully understand what's behind "*argv[]", "static public void" or "IO ()".