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

rust

Name: Anonymous 2012-01-06 18:14

rust seems quite nice (just looking at the docs)

anyone played around with it much?

Name: Anonymous 2012-01-06 19:38

>>1

use std;
import std::io;

fn main() {
    for i in [1, 2, 3] {
        io::println(#fmt("hello %d\n", i));
    }
}


I can't stop puking


use std;

fn fac(uint x) -> uint {
  if (x <= 1u) {
    ret 1u;
  }
  else {
    ret x * fac(x-1u);
  }
}

fn main() {
  log fac(5u);
}


Oh god it just keeps getting worse, i'm going to be sick tonight.

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