Name: Anonymous 2012-01-06 18:14
rust seems quite nice (just looking at the docs)
anyone played around with it much?
anyone played around with it much?
use std;
import std::io;
fn main() {
for i in [1, 2, 3] {
io::println(#fmt("hello %d\n", i));
}
}
use std;
fn fac(uint x) -> uint {
if (x <= 1u) {
ret 1u;
}
else {
ret x * fac(x-1u);
}
}
fn main() {
log fac(5u);
}
suck::my::dick(#fmt("suck it %s\n","faggot"));
fn
-> return-type
{ }
log my::inconsistent:calling:convention("faggot");
use my::dick;
import your::1::inch:wonder;
;