News for hackers. Stuff that matters.
Re:Mozilla releases version 0.1 of the Rust programming lang... by nwmcsween on Tuesday January 24, 2012 @12:56AM (#3503668)
Can you clarify a few things, these are bikeshed issues but they bother me none the less.

* Why was fn foo(bar: int) -> int chosen and not fn foo(bar:int): int? * Why annotations within comments? Annotations aren't comments it smells of C bolt-on. Why not keyword annotations?

Re:Mozilla releases version 0.1 of the Rust programming lang... by brson on Tuesday January 24, 2012 @01:30AM (#3503732)
Annotations don't live within comments. The syntax for annotations is #[annotation]. They are part of the grammar.
Re:Mozilla releases version 0.1 of the Rust programming lang... by mhitza on Tuesday January 24, 2012 @02:48AM (#3503885)
Because with the arrow syntax for results it makes it cleaner for functions that return functions?

fn (x:int) -> fn@(y:int, z:int) -> int

Re:Mozilla releases version 0.1 of the Rust programming lang... by fzzzy on Tuesday January 24, 2012 @04:46PM (#3507021)
Also passing functions to functions:

fn foo(bar: fn(baz: int) -> int) -> int

Instead of

fn foo(bar: fn(baz: int) : int) : int