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

Rust my anus

Name: Anonymous 2012-10-16 8:50

What do you think about Rust? It's a language Mozilla is developing to write an experemental highly parallel browser: https://github.com/mozilla/servo

It aims to be a low-level language, but ensures memory safety and borrows havely from functional programming: there are closures, pattern matching and algebraic data types.  Looks very interesting.

Release notes from a recent version: https://github.com/mozilla/rust/wiki/Doc-detailed-release-notes
Turorial: http://dl.rust-lang.org/doc/0.4/tutorial.html

Name: Anonymous 2012-10-16 17:13

fn mk_appender(suffix: ~str) -> fn@(~str) -> ~str {
    return fn@(s: ~str) -> ~str { s + suffix };
}

fn main() {
    let shout = mk_appender(~"!");
    io::println(shout(~"hey ho, let's go"));
}

Can someone tell me why the need for languages to use every fucking key on the keyboard as syntactic markers? Is everyone designing a new language secretly envious of J?

I'll concede spaces may not be the answer (Python), but why not just use {} everywhere, since it seems () is scary and reserved for Common Lisp.

Also is prefix notation pretty much dead now? Once I got used to it I kinda liked it.

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