News for hackers. Stuff that matters.
Re:Rust 0.5 released by pcwalton on Friday December 21, 2012 @11:53PM (#4955804)
Probably the best place to look at the moment is this presentation: https://air.mozilla.org/intern-presentation-message-passing-...
Re:Rust 0.5 released by nullc on Saturday December 22, 2012 @03:38PM (#4957411)
Perhaps I missed where it was explained— but I don't see how rust enforces the type predicates (e.g. acquire vs wait state) there without typestate.
Re:Rust 0.5 released by pcwalton on Saturday December 22, 2012 @04:34PM (#4957549)
Say I have a protocol that transitions from A -> B -> C. Since the pipes compiler creates the only constructor for type B, there's no way for you to construct a value of type B (in the safe language) without giving up your one value of type A. The uniqueness typing system prevents you from copying your single value of A, and you must surrender all your references to it at the time you transition to state B.