News for hackers. Stuff that matters.
Re:Such a Little Thing: The Semicolon in Rust by yxhuvud on Friday October 19, 2012 @02:20AM (#4672493)
I'm all with the author with the Ruby love and it looks like Rust managed to implement them in a cleaner syntactic way compared to Ruby.

However, that template code was utterly hideous.

Re:Such a Little Thing: The Semicolon in Rust by kibwen on Friday October 19, 2012 @08:54AM (#4673280)
Normally in Rust you'd never use a trait like that without bringing it into the local namespace, so you wouldn't need to qualify it with its module like Armin does. And in future versions of Rust, Num will inherit from both the Eq and Copy traits, so the signature would instead look like this:

  fn find_even<T: Num>(vec: &[T]) -> Option<T> {