On Mar 11, 2011, at 2:09 PM, Marijn Haverbeke wrote:

>> The restraint part is that we have no story for handling or propagating C++
>> exceptions into rust failures yet. We could do it with try/catch blocks on
>> all upcalls and native calls, possibly, but it'd take some care and a degree
>> of certainty that it's the right approach that I don't yet have. So there
>> are no exceptions used in librustrt for now.
> 
> I actually think this is a sane decision. It'll require a peculiar
> style of C++ programming, but is probably still less burdensome than
> properly dealing with exceptions (which, on cross-language boundaries,
> tends to be extremely painful).

Agreed. For Mozillans this will be the same C++ subset we use (templates, RAII, 
all the best parts save exceptions).

Graydon, thanks for clarifying. You know me, I would have been pretty happy 
sticking with plain C :-P.

/be

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

Reply via email to