Lisp or Ocaml?

Psionicist

Explorer
I'm getting tired of C and x86 assembly and I want to try something new. I have basically two options:

1) I learn Lisp (common or scheme) now and Ocaml later.
2) Above reveresed.

Suggestions?
 
Last edited:

log in or register to remove this ad





Ocaml is pretty cool. Very weird syntax at first but it's quite logical.

Euclid's algorithm for example:

Code:
[color=#FFFFCC]
let rec gcd a b =
    let r = a mod b in
        if r = 0 then
            b
        else
            gcd b r
[/color]
 

OCaml regularly wins the IFPC (International Functional Programming Contest) - I don't recall seeing much LISP there.

Either will serve you in good stead, though - go with whichever environment provides the things you need to best learn them. Just don't expect to make much of a living at either ;-).
 

Remove ads

Top