[rust-dev] Bring Back Type State

Suminda Dharmasena sirinath at sakrio.com
Wed Jun 4 22:11:09 PDT 2014


Hi,

The initial Type State implementation in Rust was not a great way to get
about it. Please reconsider adding type state like it has been done in the
Plaid language.

Basically you can use traits mechanism to mixin and remove the trait when
methods marked as having state transitions.

Suminda

Plaid: http://www.cs.cmu.edu/~aldrich/plaid/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140605/f75a1773/attachment.html>


More information about the Rust-dev mailing list