Hi,

I'd like to bring a bit more of feedback. I've read Stateful Traits [1]
and I was wondering how Rust intended to solve the issue mentionned in
the paper related to statelessness:
"However this simple model suffers from several limitations, in particular
(i) trait reusability is impacted because the required interface is
typically cluttered with uninteresting required accessors,
(ii) client classes are forced to implement boilerplate glue code,
(iii) the introduction of new state in a trait propagates required
accessors to all client classes,
(iv) public accessors break encapsulation of the client class."

David

[1] http://scg.unibe.ch/archive/papers/Berg07aStatefulTraits.pdf
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to