On Sat, Nov 20, 2010 at 5:00 PM, Patrick Walton <[email protected]> wrote:
>
> But there's another problem with objects, and one that's potentially far
> more severe than the performance problem: sending them over channels. As I
> understand it (and feel free to correct me here), it's not clear that we're
> going to be able to send objects over channels at all, because they (along
> with functions) belong to the opaque typeclass, which means that we can't
> tell statically whether they contain mutable, shared data.


Isn't the solution to make sure that you *can* tell whether an interface
depends on mutable data? This is the distinction that e.g. D makes between
immutable and const (immutable means the data can't be changed, const means
that *you* won't change it - the latter is needed to make sure you can write
one function that can be used with both immutable and mutable data).

-- 
Sebastian Sylvan
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to