> I know from experience that it is NOT "extremely difficult" to write
> exception-safe code. It's really pretty simple: use RAII, use destructors
> for cleanup.

Agreed.  Or, as Bjarne used to say "no naked news" :)  It feels like
we've been gradually migrating to the codebase to this style *anyway*
since it's more maintainable even w/o EH.

> But converting existing code is hard. (And maintaining a boundary between EH
> and non-EH parts of a program sounds like a huge headache.)

Also agreed :(  However, based on our relative success using static
analysis to switch from conservative to precise GC, I was thinking
that it would be possible to apply similar techniques to incrementally
switch to EH.  Still, as you said, a relatively large investment so
not one I'd advocate for making atm.
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to