News for hackers. Stuff that matters.
Re:Rust Performance Pitfalls by dom0 on Thursday June 08, 2017 @03:04PM (#14516326)
const does not imply pure. If applied to a member function, it makes this const; if applied to types it makes types const. Purity is a different concept. The closest match would probably be constexpr.
Re:Rust Performance Pitfalls by stcredzero on Thursday June 08, 2017 @06:48PM (#14517766)
const does not imply pure. If applied to a member function, it makes this const; if applied to types it makes types const.

You just demonstrated what I mean when I comment that const is fraught.

Purity is a different concept.

Purity more easily maps more closely to an abstract concept and is easier to for people reason about.