Next Atypical Types 39

Big Deal?

One big deal is that you do not need to declare types!

Let's consider everyone's favorite example:

        int fact(int n) {
          if (n == 0) return 1;
          else return n * fact(n-1);
        }

In Haskell, that looks almost the same:

        fact 0 = 1
        fact n = n * fact(n-1)

Hey, where did the ints go?

Next Copyright © 1999,2008 Mark Dominus