Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

what is your excuse for not using OCAML?

Name: Anonymous 2012-01-13 14:21

it's blazing fast. strict (not like the other shit), french.

it supports:
  functional style (yay)
  imperative programing (because mutation is essential)
  and a sane OOP (seriously is one sane OOP, is not ambitious is just useful)

pattern matching is great. i would love to see a OS with it's entire userland written in this.

but i don't why haven't catch on?, what is your excuse Prog

Name: Anonymous 2012-01-14 6:27

Symta:

sum [X@Xs] = X+Xs,r


C/C++:

int sum(int *Xs) {
  int I,S;
  for(S=I=0; I<Xs[-1]; I++) S+=Xs[I];
  return S;
}


OCaml:

let rec sum xs =
  match xs with
    | []       -> 0
    | x :: xs' -> x + sum xs'

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List