News for hackers. Stuff that matters.
Re:Learning Haskell is no harder than learning any other pro... by pwm on Sunday October 06, 2019 @07:36AM (#21171372)
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 ()".

There are no comments on this comment yet.