News for hackers. Stuff that matters.
Re:Purging proc from Rust by gnuvince on Wednesday November 26, 2014 @08:59PM (#8665644)
So does Rust still "have closures" or are they now just a specific implementation of a trait? Are there other features that could be implemented as traits?
Re:Purging proc from Rust by jdpage on Wednesday November 26, 2014 @11:53PM (#8666040)
Rust has closures, and they are just a specific implementation of a trait.

Many fundamental concepts in Rust, including arithmetic, comparisons, sendability, and smart pointers are formally traits (though the compiler may treat some of them specially, particularly arithmetic and comparisons).

Re:Purging proc from Rust by bjz_ on Thursday November 27, 2014 @07:37AM (#8666954)
This has been a common theme through Rusts's history. Things that were baked-in language constructs have gradually migrated to become library things with sugar enabled via traits. This is leading to towards a very simple, extensible language.
Re:Purging proc from Rust by Sonata on Thursday November 27, 2014 @07:58AM (#8667013)
This is something which really excites me about Rust. Having constructs as fundamental as function application extensible via traits reminds me of Python's magic methods, but without the runtime overhead.